/* ==================== DYNATECH CUSTOMER PORTAL - POWER PAGES STYLES ==================== */
/* Version: 1.0 */
/* Compatible with Power Pages / Power Portals */

/* ==================== VARIABLES ==================== */
:root {
    /* Dark Theme Variables (Default) */
    --bg-dark: #0a0e27;
    --bg-body: #0a0e27;
    --bg-sidebar: rgba(15, 23, 42, 0.9);
    --bg-card: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-hover: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.1);
    
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --accent: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;
    
    --sidebar-width: 80px;
    --sidebar-expanded: 260px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --toggle-bg: #1e293b;
    --input-bg: rgba(255, 255, 255, 0.05);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-dark: #f3f4f6;
    --bg-body: #f3f4f6;
    --bg-sidebar: rgba(255, 255, 255, 0.95);
    --bg-card: #ffffff;
    --glass-bg: #ffffff;
    --glass-hover: #f9fafb;
    --border-color: #e2e8f0;
    
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --accent: #8b5cf6;
    --success: #10b981;
    --warning: #d97706;
    --danger: #dc2626;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-dark: #1e293b;
    
    --toggle-bg: #e2e8f0;
    --input-bg: #f1f5f9;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 40%);
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="light"] body {
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

/* ==================== SIDEBAR ==================== */
.portal-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 0;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.portal-sidebar:hover {
    width: var(--sidebar-expanded);
}

/* Logo */
.sidebar-logo {
    height: 60px;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    white-space: nowrap;
    overflow: hidden;
    padding: 0 15px;
}

.sidebar-logo .logo-icon {
    min-width: 50px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo .logo-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.sidebar-logo .logo-text {
    /* margin-left: 10px; */
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.sidebar-logo .logo-text img {
    /* height: 30px; */
    width: auto;
}

.portal-sidebar:hover .logo-text {
    opacity: 1;
    transform: translateX(0);
}
.portal-sidebar:hover .sidebar-logo .logo-icon  {
    display: none;

}
/* Navigation */
.sidebar-nav {
    padding: 0 10px;
}

.sidebar-nav-item {
    margin-bottom: 5px;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    height: 50px;
    border-radius: 12px;
    color: var(--text-muted);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    text-decoration: none;
}

.sidebar-nav-link i {
    min-width: calc(var(--sidebar-width) - 20px);
    font-size: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.sidebar-nav-link span {
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.portal-sidebar:hover .sidebar-nav-link span {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-nav-link:hover,
.sidebar-nav-link.active {
    background: var(--glass-hover);
    color: var(--text-main);
}

.sidebar-nav-link:hover i,
.sidebar-nav-link.active i {
    color: var(--accent);
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px var(--primary));
}

/* ==================== MAIN CONTENT ==================== */
.portal-main {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: 100vh;
    transition: margin-left 0.4s ease;
}

/* ==================== HEADER ==================== */
.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Search Box */
.header-search {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.header-search input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.header-search input:focus {
    background: var(--glass-hover);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.header-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: var(--transition);
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Theme Switch */
.theme-switch {
    background: var(--toggle-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    display: flex;
    padding: 4px;
    gap: 4px;
}

.theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.theme-btn:hover {
    color: var(--text-main);
}

.theme-btn.active {
    background: var(--glass-bg);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .theme-btn.active {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-icon-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.header-icon-btn:hover {
    background: var(--text-main);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.badge-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    animation: pulse 2s infinite;
}

[data-theme="light"] .badge-dot {
    border-color: #f3f4f6;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Profile */
.header-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 15px 5px 5px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-profile:hover {
    background: var(--glass-hover);
    border-color: var(--primary);
}

.profile-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-name {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.profile-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==================== NOTIFICATION PANEL ==================== */
.notification-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 380px;
    max-height: 500px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

[data-theme="light"] .notification-panel {
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.notification-header .close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.notification-header .close-btn:hover {
    color: var(--text-main);
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

[data-theme="light"] .notification-item {
    border-bottom-color: #e2e8f0;
}

.notification-item:hover {
    background: var(--glass-hover);
}

.notification-item.unread {
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid var(--primary);
}

.notification-item i {
    font-size: 1.25rem;
    margin-top: 2px;
}

.notification-content {
    flex: 1;
}

.notification-content strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.notification-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: block;
}

.notification-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.notification-footer a {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ==================== PROFILE DROPDOWN ==================== */
.profile-dropdown {
    position: fixed;
    top: 75px;
    right: 20px;
    width: 220px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

[data-theme="light"] .profile-dropdown {
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background 0.3s;
    color: var(--text-main);
}

.dropdown-item:hover {
    background: var(--glass-hover);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
}

.dropdown-item:hover i {
    color: var(--primary);
}

.dropdown-item.logout {
    color: var(--danger);
    border-top: 1px solid var(--border-color);
}

.dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

.dropdown-item.logout i {
    color: var(--danger);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0;
}

/* ==================== GREETING SECTION ==================== */
.greeting-section {
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.greeting-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.wave-emoji {
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
}

.greeting-section p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Quick Links */
.quick-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.quick-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.quick-links a:hover {
    background: var(--glass-hover);
    color: var(--text-main);
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.quick-links a i {
    font-size: 1rem;
}

/* ==================== STATS CARDS ==================== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
    opacity: 1;
}

.card-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.card-title i {
    font-size: 1rem;
}

.card-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 12px;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-header h1 i {
    color: var(--primary);
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}



/* ==================== TABS SECTION ==================== */
.tabs-section {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    animation: fadeInUp 1s ease;
}

/* ==================== TABLE STYLES ==================== */

.table,
.dashboard-table {
    width: 100%;
    color: var(--text-main);
    margin-bottom: 0;
    border-collapse: collapse;
}

.table thead th,
.dashboard-table thead th {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 12px;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr,
.dashboard-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.table tbody tr:hover,
.dashboard-table tbody tr:hover {
    background: var(--glass-hover);
}

.table tbody tr.selected,
.dashboard-table tbody tr.selected {
    background: rgba(99, 102, 241, 0.15);
}

.table td,
.dashboard-table td {
    padding: 15px 12px;
    vertical-align: middle;
    font-size: 0.9rem;
}

.table a,
.dashboard-table a {
    color: var(--primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.table a:hover,
.dashboard-table a:hover {
    color: var(--accent);
}

.table a i,
.dashboard-table a i {
    margin-right: 5px;
}

/* ==================== ORDERS TABLE ==================== */
.orders-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.toolbar-left {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.toolbar-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.filter-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--primary);
    background-color: var(--glass-hover);
}

.filter-select option {
    background: var(--bg-dark);
    color: var(--text-main);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--glass-hover);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-action {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

/* Orders Table */
.orders-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.orders-table thead {
    background: rgba(255, 255, 255, 0.03);
}

.orders-table thead th {
    padding: 1rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s;
}

.orders-table thead th:hover {
    color: var(--text-main);
}

.orders-table thead th.sort-asc i.fa-sort::before,
.orders-table thead th.sort-desc i.fa-sort::before {
    color: var(--primary);
}

.orders-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.orders-table tbody tr:hover {
    background: var(--glass-hover);
}

.orders-table tbody tr.selected {
    background: rgba(99, 102, 241, 0.15);
}

.orders-table tbody td {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-main);
    vertical-align: middle;
}

/* Checkbox */
.checkbox-all,
.checkbox-row {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Order Link */
.order-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.order-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.order-link i {
    font-size: 0.9rem;
}

/* Customer Info */
.customer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.customer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}

/* Text Muted */
.text-muted {
    color: var(--text-muted) !important;
}

/* Amount */
.amount {
    font-weight: 600;
    color: var(--text-main);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge i {
    font-size: 0.75rem;
}

.status-completed,
.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-processing {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-cancelled,
.status-expired {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-expiring {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action-icon:hover {
    background: var(--glass-hover);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-renew-urgent {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.btn-renew-urgent:hover {
    background: rgba(245, 158, 11, 0.3);
    border-color: #fbbf24;
}

/* Pagination */
.orders-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pagination-info strong {
    color: var(--text-main);
    font-weight: 600;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    border-radius: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    background: var(--glass-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: var(--primary);
    color: white;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==================== SUBSCRIPTION PAGE STYLES ==================== */

/* Subscription Controls */
.subscription-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1rem;
}

.subscription-controls .btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.subscription-controls .btn-link:hover {
    color: var(--accent);
}

.subscription-controls .vendor-console-select {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Subscription Stats Cards */
.subscription-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--glass-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.stat-label i {
    font-size: 1rem;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0.3rem 0;
    background: linear-gradient(135deg, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-desc {
    font-size: 0.9rem;
    opacity: 0.75;
}

.stat-risk {
    margin-top: 0.5rem;
    padding: 0.25rem 0.6rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--primary);
    display: inline-block;
}

/* Colors for Expiry Cards */
.expiring-7days .stat-label,
.expiring-7days .stat-risk {
    color: #dc2626;
}

.expiring-7days .stat-risk {
    background: rgba(220, 38, 38, 0.1);
}

.expiring-30days .stat-label,
.expiring-30days .stat-risk {
    color: #b45309;
}

.expiring-30days .stat-risk {
    background: rgba(180, 83, 9, 0.1);
}

.stat-active .stat-label,
.active-label {
    color: #16a34a;
}

/* Filter Section */
.subscription-filters {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.subscription-filters select,
.subscription-filters .search-input {
    flex: 1;
    min-width: 180px;
    max-width: 300px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.subscription-filters select:focus,
.subscription-filters .search-input:focus {
    border-color: var(--primary);
}

.subscription-filters .search-input::placeholder {
    color: var(--text-muted);
}

/* Subscription Tabs */
.subscription-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    align-items: center;
}

.tab-btn {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-btn:hover {
    background: var(--glass-hover);
    color: var(--text-main);
    border-color: var(--primary);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-color: var(--primary);
}

.tab-count {
    font-weight: 500;
    opacity: 0.8;
}

/* Filter link (All Filter) */
.filter-link {
    margin-left: auto;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--primary);
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.filter-link:hover {
    color: var(--accent);
}

/* Subscriptions Table */
.subscriptions-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.subscriptions-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-main);
    font-size: 0.9rem;
}

.subscriptions-table thead {
    background: rgba(255, 255, 255, 0.03);
}

.subscriptions-table thead th {
    text-align: left;
    padding: 1rem;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    user-select: none;
}

.subscriptions-table thead th:hover {
    color: var(--text-main);
}

.subscriptions-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.subscriptions-table tbody tr:hover {
    background: var(--glass-hover);
}

.subscriptions-table tbody tr.selected {
    background: rgba(99, 102, 241, 0.15);
}

.subscriptions-table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.subscriptions-table tbody td > div {
    line-height: 1.4;
}

.subscription-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
    margin-top: 2px;
}

.subscription-link:hover {
    text-decoration: underline;
    color: var(--accent);
}

.license-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

/* Auto Renew Status */
.autorenew-on {
    color: var(--success);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.autorenew-off {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ==================== QUOTES STYLES ==================== */
.quotes-overview {
    text-align: center;
    padding: 3rem 2rem;
}

.quotes-overview h5 {
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 1.3rem;
}

.quote-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.quote-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot-success {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.dot-primary {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.dot-secondary {
    background: var(--text-muted);
}

.dot-warning {
    background: var(--warning);
    box-shadow: 0 0 10px var(--warning);
}

.dot-danger {
    background: var(--danger);
    box-shadow: 0 0 10px var(--danger);
}

.quote-total {
    margin-bottom: 2rem;
}

.quote-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.quote-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-primary {
    padding: 10px 30px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    color: white;
}

/* ==================== INVOICE SUMMARY ==================== */
.invoice-summary {
    padding: 1rem 0;
}

.invoice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.invoice-item:hover {
    background: var(--glass-hover);
    padding-left: 1.5rem;
}

.invoice-item:last-child {
    border-bottom: none;
}

.invoice-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.invoice-amount {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ==================== VIEW ALL LINK ==================== */
.view-all {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: var(--accent);
    gap: 12px;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
    .stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .orders-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-left,
    .toolbar-right {
        width: 100%;
        justify-content: flex-start;
    }
    
    .subscription-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: var(--sidebar-width);
    }
    
    .sidebar:hover {
        width: var(--sidebar-width);
    }
    
    .logo span,
    .nav-link span {
        display: none;
    }
    
    .main {
        margin-left: var(--sidebar-width);
        padding: 1.5rem;
    }
    
    .header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .header-actions {
        justify-content: space-between;
    }
    
    .greeting h1 {
        font-size: 1.5rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .quote-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .subscription-tabs {
        justify-content: flex-start;
    }
    
    .filter-link {
        margin-left: 0;
    }
    
    .orders-table,
    .subscriptions-table {
        font-size: 0.8rem;
    }
    
    .orders-table thead th,
    .orders-table tbody td,
    .subscriptions-table thead th,
    .subscriptions-table tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    .customer-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .orders-pagination {
        flex-direction: column;
        text-align: center;
    }
    
    .pagination-controls {
        justify-content: center;
    }
    
    .notification-panel {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 1rem;
    }
    
    .card-value {
        font-size: 2rem;
    }
    
    .nav-tabs .nav-link {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .toolbar-right {
        flex-wrap: wrap;
    }
    
    .btn-action {
        width: 100%;
        justify-content: center;
    }
    
    .subscription-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .subscription-filters {
        flex-direction: column;
    }
    
    .subscription-filters select,
    .subscription-filters .search-input {
        max-width: 100%;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Glow Effect */
.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px var(--primary);
    }
    to {
        box-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary);
    }
}

/* Spin animation for refresh button */
.fa-spin {
    animation: spin 1s linear infinite;
}

/* ==================== LIGHT THEME SPECIFIC STYLES ==================== */
[data-theme="light"] .sidebar {
    background: rgba(255, 255, 255, 0.95);
    border-right: 1px solid #e2e8f0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    background: #f1f5f9;
}

[data-theme="light"] .card,
[data-theme="light"] .stat-card,
[data-theme="light"] .tabs-section,
[data-theme="light"] .bento-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .card:hover,
[data-theme="light"] .stat-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .orders-toolbar,
[data-theme="light"] .orders-pagination {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .orders-table-wrapper,
[data-theme="light"] .subscriptions-table-wrapper {
    border-color: #e2e8f0;
}

[data-theme="light"] .orders-table thead,
[data-theme="light"] .subscriptions-table thead {
    background: #f8fafc;
}

[data-theme="light"] .orders-table tbody tr:hover,
[data-theme="light"] .subscriptions-table tbody tr:hover,
[data-theme="light"] .table tbody tr:hover {
    background: #f1f5f9;
}

[data-theme="light"] .search-box input {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #0f172a;
}

[data-theme="light"] .search-box input::placeholder {
    color: #94a3b8;
}

[data-theme="light"] .filter-select {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #0f172a;
}

[data-theme="light"] .icon-btn,
[data-theme="light"] .btn-icon {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

[data-theme="light"] .icon-btn:hover,
[data-theme="light"] .btn-icon:hover {
    background: #e2e8f0;
    color: #0f172a;
}

[data-theme="light"] .profile {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .profile:hover {
    background: #f1f5f9;
}

[data-theme="light"] .notification-panel,
[data-theme="light"] .profile-dropdown {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .notification-item:hover,
[data-theme="light"] .dropdown-item:hover {
    background: #f1f5f9;
}

[data-theme="light"] .notification-item.unread {
    background: rgba(99, 102, 241, 0.08);
}

[data-theme="light"] .quick-links a {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

[data-theme="light"] .quick-links a:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: var(--primary);
}

[data-theme="light"] .tab-btn {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .tab-btn:hover {
    background: #f1f5f9;
}

[data-theme="light"] .page-btn {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .page-btn:hover:not(:disabled) {
    background: #f1f5f9;
}

[data-theme="light"] .btn-action-icon {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .btn-action-icon:hover {
    background: #f1f5f9;
}

[data-theme="light"] .card-value,
[data-theme="light"] .stat-number {
    background: linear-gradient(135deg, #0f172a, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .badge-dot {
    border-color: #f3f4f6;
}

[data-theme="light"] .subscription-filters select,
[data-theme="light"] .subscription-filters .search-input {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #0f172a;
}

[data-theme="light"] .vendor-console-select {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #0f172a;
}

/* ==================== UTILITY CLASSES ==================== */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.flex {
    display: flex !important;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-end { text-align: right; }

/* ==================== END OF STYLES ==================== */
/* ==================== STATS CARDS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.stat-card-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 12px;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-header h1 i {
    color: var(--primary);
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    background: transparent;
    padding: 0;
}

.breadcrumb a {
     color: var(--primary);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: normal;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--text-main);
}

/* ==================== TABS SECTION ==================== */
.content-section {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    animation: fadeInUp 1s ease;
}

/* Tabs Navigation */
.nav-tabs {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.nav-tabs .nav-item {
    margin-bottom: 0;
}

.nav-tabs .nav-link {
    color: var(--text-muted);
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 0;
}

.nav-tabs .nav-link:hover {
    color: var(--text-main);
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--text-main);
    background: transparent;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 10px var(--primary);
}

/* Tab Content */
.tab-content {
    min-height: 300px;
}

.tab-pane {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== TABLE STYLES ==================== */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    color: var(--text-main);
    margin-bottom: 0;
    border-collapse: collapse;
}

.data-table thead th {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 12px;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

[data-theme="light"] .data-table tbody tr {
    border-bottom-color: #e2e8f0;
}

.data-table tbody tr:hover {
    background: var(--glass-hover);
}

.data-table tbody tr.selected {
    background: rgba(99, 102, 241, 0.15);
}

.data-table td {
    padding: 15px 12px;
    vertical-align: middle;
    font-size: 0.9rem;
}

.data-table a {
    color: var(--primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.data-table a:hover {
    color: var(--accent);
}
