﻿:root {
    --primary-color: #4f46e5;
    /* Indigo */
    --primary-dark: #4338ca;
    --secondary-color: #64748b;
    /* Slate */
    --accent-color: #f59e0b;
    /* Amber */
    --success-color: #10b981;
    /* Emerald */
    --danger-color: #ef4444;
    /* Red */
    --bg-color: #f3f4f6;
    --sidebar-bg: #1e293b;
    /* Slate 800 */
    --card-bg: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
}

.admin-container {
    display: flex;
    height: 100%;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    transition: width 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #fff;
}

.logo i {
    color: var(--primary-color);
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.nav-item:hover,
.nav-item.active {
    background-color: #334155;
    color: white;
}

.nav-item i {
    width: 20px;
    text-align: center;
}

/* Submenu Styles */
.nav-submenu-container {
    display: flex;
    flex-direction: column;
}

.nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 2.5rem;
    margin-top: 0.25rem;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
}

.nav-submenu.expanded {
    max-height: 200px;
}

.nav-submenu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.nav-submenu-item:hover,
.nav-submenu-item.active {
    background-color: #334155;
    color: white;
}

.nav-item .fa-chevron-down {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.nav-submenu-container.expanded .fa-chevron-down {
    transform: rotate(180deg);
}

.nav-submenu-container.parent-active > .nav-item {
    background-color: #334155;
    color: white;
}


.badge {
    background-color: var(--danger-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    margin-left: auto;
}

.user-profile {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info .user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-info .user-role {
    font-size: 0.75rem;
    color: #94a3b8;
}

#logout-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

#logout-btn:hover {
    color: var(--danger-color);
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.top-bar h2 {
    font-size: 1.875rem;
    font-weight: 700;
}

.date-display {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card.pending .stat-icon {
    background-color: #fff7ed;
    color: var(--accent-color);
}

.stat-card.active-vendors .stat-icon {
    background-color: #ecfdf5;
    color: var(--success-color);
}

.stat-info h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Tables */
.table-container {
    background: var(--card-bg);
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background-color: #f8fafc;
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.data-table tbody tr:hover {
    background-color: #f8fafc;
}

.btn-action {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    margin-right: 0.5rem;
    transition: all 0.2s;
}

.btn-approve {
    background-color: #d1fae5;
    color: #065f46;
}

.btn-approve:hover {
    background-color: #a7f3d0;
}

.btn-reject {
    background-color: #fee2e2;
    color: #991b1b;
}

.btn-reject:hover {
    background-color: #fecaca;
}

.btn-view {
    background-color: #dbeafe;
    color: #1e40af;
}

.btn-view:hover {
    background-color: #bfdbfe;
}

.vendor-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.vendor-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.btn-block {
    background-color: #f3f4f6;
    color: #374151;
}

.btn-block:hover {
    background-color: #e5e7eb;
}

/* Views Logic */
.view-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn-refresh {
    background: white;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-refresh:hover {
    background: #f8fafc;
    color: var(--primary-color);
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.verified {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge.pending {
    background-color: #ffedd5;
    color: #9a3412;
}

.status-badge.blocked {
    background-color: #f1f5f9;
    color: #475569;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.close-modal {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

textarea {
    width: 100%;
    margin: 1rem 0;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    resize: vertical;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-cancel {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Store URL Cell Styling */
.store-url-cell {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.storefront-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
    font-size: 0.85rem;
}

.storefront-link:hover {
    text-decoration: underline;
}

.store-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
}

.btn-icon:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-icon:active {
    transform: scale(0.95);
}









 



.input-group {
 position: relative;
}

.input {
 border: solid 1.5px #9e9e9e;
 border-radius: 1rem;
 background: none;
 padding: 1rem;
 font-size: 1rem;
 color: #f5f5f5;
 transition: border 150ms cubic-bezier(0.4,0,0.2,1);
 width: 100%; /* added to preserve layout */
 box-sizing: border-box; /* added to preserve layout */
 margin-bottom: 1.25rem; /* added to preserve layout */
}

.user-label {
 position: absolute;
 left: 15px;
 color: #e8e8e8;
 pointer-events: none;
 transform: translateY(1rem);
 transition: 150ms cubic-bezier(0.4,0,0.2,1);
}

.input:focus, input:valid {
 outline: none;
 border: 1.5px solid #1a73e8;
}

.input:focus ~ label, input:valid ~ label {
 transform: translateY(-50%) scale(0.8);
 background-color: #212121;
 padding: 0 .2em;
 color: #2196f3;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   BTN-53 Animated Button (Uiverse.io/doniaskima)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.btn-53, .btn-53 *, .btn-53 :after, .btn-53 :before, .btn-53:after, .btn-53:before { box-sizing: border-box; }
.btn-53 {
  -webkit-tap-highlight-color: transparent;
  -webkit-mask-image: -webkit-radial-gradient(#000, #fff);
  overflow: hidden; position: relative;
  display: inline-block; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.btn-53 .original {
  background: inherit; color: inherit;
  display: grid; inset: 0; place-content: center;
  position: absolute;
  transition: transform 0.2s cubic-bezier(0.87, 0, 0.13, 1);
}
.btn-53:hover .original { transform: translateY(100%); }
.btn-53 .letters { display: inline-flex; }
.btn-53 .letters span {
  opacity: 0; transform: translateY(-15px); display: inline-block;
  transition: transform 0.2s cubic-bezier(0.87, 0, 0.13, 1), opacity 0.2s;
}
.btn-53 .letters span:nth-child(2n) { transform: translateY(15px); }
.btn-53:hover .letters span { opacity: 1; transform: translateY(0); }
.btn-53:hover .letters span:nth-child(2)  { transition-delay: 0.05s; }
.btn-53:hover .letters span:nth-child(3)  { transition-delay: 0.10s; }
.btn-53:hover .letters span:nth-child(4)  { transition-delay: 0.15s; }
.btn-53:hover .letters span:nth-child(5)  { transition-delay: 0.20s; }
.btn-53:hover .letters span:nth-child(6)  { transition-delay: 0.25s; }
.btn-53:hover .letters span:nth-child(7)  { transition-delay: 0.30s; }
.btn-53:hover .letters span:nth-child(8)  { transition-delay: 0.35s; }
.btn-53:hover .letters span:nth-child(9)  { transition-delay: 0.40s; }
.btn-53:hover .letters span:nth-child(10) { transition-delay: 0.45s; }
.btn-53:hover .letters span:nth-child(11) { transition-delay: 0.50s; }
.btn-53:hover .letters span:nth-child(12) { transition-delay: 0.55s; }
.btn-53:hover .letters span:nth-child(13) { transition-delay: 0.60s; }
.btn-53:hover .letters span:nth-child(14) { transition-delay: 0.65s; }
.btn-53:hover .letters span:nth-child(15) { transition-delay: 0.70s; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Page Speed Loader Overlay
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#page-loader-overlay {
  position: fixed; inset: 0; z-index: 999999;
  background: rgba(11,11,11,0.88);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
#page-loader-overlay.active { opacity: 1; pointer-events: all; }
#page-loader-overlay .loader {
  position: relative; animation: speeder 0.4s linear infinite;
}
#page-loader-overlay .loader > span {
  height: 5px; width: 35px; background: #E31E24;
  position: absolute; top: -19px; left: 60px; border-radius: 2px 10px 1px 0;
}
#page-loader-overlay .base span {
  position: absolute; width: 0; height: 0;
  border-top: 6px solid transparent;
  border-right: 100px solid #E31E24;
  border-bottom: 6px solid transparent;
}
#page-loader-overlay .base span:before {
  content: ""; height: 22px; width: 22px; border-radius: 50%;
  background: #E31E24; position: absolute; right: -110px; top: -16px;
}
#page-loader-overlay .base span:after {
  content: ""; position: absolute; width: 0; height: 0;
  border-top: 0 solid transparent; border-right: 55px solid #E31E24;
  border-bottom: 16px solid transparent; top: -16px; right: -98px;
}
#page-loader-overlay .face {
  position: absolute; height: 12px; width: 20px; background: #E31E24;
  border-radius: 20px 20px 0 0; transform: rotate(-40deg); right: -125px; top: -15px;
}
#page-loader-overlay .face:after {
  content: ""; height: 12px; width: 12px; background: #E31E24;
  right: 4px; top: 7px; position: absolute;
  transform: rotate(40deg); transform-origin: 50% 50%; border-radius: 0 0 0 2px;
}
#page-loader-overlay .loader > span > span:nth-child(1),
#page-loader-overlay .loader > span > span:nth-child(2),
#page-loader-overlay .loader > span > span:nth-child(3),
#page-loader-overlay .loader > span > span:nth-child(4) {
  width: 30px; height: 1px; background: #E31E24;
  position: absolute; animation: fazer1 0.2s linear infinite;
}
#page-loader-overlay .loader > span > span:nth-child(2) { top: 3px; animation: fazer2 0.4s linear infinite; }
#page-loader-overlay .loader > span > span:nth-child(3) { top: 1px; animation: fazer3 0.4s linear infinite; animation-delay: -1s; }
#page-loader-overlay .loader > span > span:nth-child(4) { top: 4px; animation: fazer4 1s linear infinite; animation-delay: -1s; }
@keyframes fazer1 { 0% { left: 0; } 100% { left: -80px; opacity: 0; } }
@keyframes fazer2 { 0% { left: 0; } 100% { left: -100px; opacity: 0; } }
@keyframes fazer3 { 0% { left: 0; } 100% { left: -50px; opacity: 0; } }
@keyframes fazer4 { 0% { left: 0; } 100% { left: -150px; opacity: 0; } }
@keyframes speeder {
  0%   { transform: translate(2px,1px) rotate(0deg); }
  10%  { transform: translate(-1px,-3px) rotate(-1deg); }
  20%  { transform: translate(-2px,0px) rotate(1deg); }
  30%  { transform: translate(1px,2px) rotate(0deg); }
  40%  { transform: translate(1px,-1px) rotate(1deg); }
  50%  { transform: translate(-1px,3px) rotate(-1deg); }
  60%  { transform: translate(-1px,1px) rotate(0deg); }
  70%  { transform: translate(3px,1px) rotate(-1deg); }
  80%  { transform: translate(-2px,-1px) rotate(1deg); }
  90%  { transform: translate(2px,1px) rotate(0deg); }
  100% { transform: translate(1px,-2px) rotate(-1deg); }
}
#page-loader-overlay .longfazers { position: absolute; width: 100%; height: 100%; top:0; left:0; }
#page-loader-overlay .longfazers span { position: absolute; height: 2px; width: 20%; background: rgba(227,30,36,0.35); }
#page-loader-overlay .longfazers span:nth-child(1) { top: 20%; animation: lf  0.6s linear infinite; animation-delay: -5s; }
#page-loader-overlay .longfazers span:nth-child(2) { top: 40%; animation: lf2 0.8s linear infinite; animation-delay: -1s; }
#page-loader-overlay .longfazers span:nth-child(3) { top: 60%; animation: lf3 0.6s linear infinite; }
#page-loader-overlay .longfazers span:nth-child(4) { top: 80%; animation: lf4 0.5s linear infinite; animation-delay: -3s; }
@keyframes lf  { 0% { left: 200%; } 100% { left: -200%; opacity: 0; } }
@keyframes lf2 { 0% { left: 200%; } 100% { left: -200%; opacity: 0; } }
@keyframes lf3 { 0% { left: 200%; } 100% { left: -100%; opacity: 0; } }
@keyframes lf4 { 0% { left: 200%; } 100% { left: -100%; opacity: 0; } }
