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

:root {
    --primary-color: #1a1d29;
    --primary-dark: #0f1117;
    --secondary-color: #c9a961;
    --secondary-hover: #b8964f;
    --accent-color: #8b7355;
    --gold-light: #f5e6d3;
    --gold-medium: #c9a961;
    --gold-dark: #a6894a;
    --bronze: #8b7355;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --sidebar-width: 260px;
    --top-nav-height: 60px;
    --border-color: #e5e7eb;
    --bg-primary: #f3f4f6;
    --bg-secondary: #e5e7eb;
    --bg-tertiary: #d1d5db;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

/* Top Navigation Bar */
.top-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--top-nav-height);
    background: #374151;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.top-nav-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.datetime-display {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.3px;
    padding: 4px 10px;
    display: inline-block;
    background: transparent;
    border: none;
    min-width: auto;
}

.datetime-display span {
    font-family: 'Courier New', monospace;
    display: inline-block;
    white-space: nowrap;
    color: #ffffff;
    font-weight: 500;
}

.top-nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 8px 0;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    max-width: 350px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.top-nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: var(--bg-tertiary);
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-medium) 0%, var(--accent-color) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.25);
    border: 2px solid rgba(201, 169, 97, 0.15);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.user-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
    font-weight: 500;
}

.menu-icon {
    background: none;
    border: none;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Admin Portal Layout */
.admin-portal {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-secondary);
    padding-top: var(--top-nav-height);
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: #374151;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: calc(100vh - var(--top-nav-height));
    top: var(--top-nav-height);
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #1f2937;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.5);
}

.sidebar-header {
    flex-shrink: 0;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
}

.sidebar-footer {
    flex-shrink: 0;
    padding: 12px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    margin: 1px 0;
    border-radius: 0;
    position: relative;
    letter-spacing: -0.01em;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.95);
    border-left-color: rgba(201, 169, 97, 0.4);
}

.nav-item.active {
    background: rgba(201, 169, 97, 0.12);
    color: #ffffff;
    font-weight: 600;
    border-left-color: var(--secondary-color);
}

.nav-item-logout {
    color: rgba(255, 255, 255, 0.7);
}

.nav-item-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: rgba(255, 255, 255, 0.95);
    border-left-color: rgba(239, 68, 68, 0.5);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--top-nav-height));
}

.page-header-section {
    background: #f3f4f6;
    padding: 20px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.page-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 10px 20px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    background: var(--bg-primary);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}

.action-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.action-btn.active {
    background: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.25);
}

.page-content-wrapper {
    padding: 24px 32px;
    flex: 1;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    letter-spacing: -0.01em;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--secondary-color);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.25);
}

.btn-primary:hover {
    background: var(--secondary-hover);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1.5px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: rgba(0, 0, 0, 0.15);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #38a169;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #e53e3e;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Metrics Section */
.metrics-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0;
    margin-bottom: 24px;
    padding: 0;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border-color);
}

.metric-item {
    padding: 24px 32px;
    border-right: 1px solid var(--border-color);
    text-align: left;
}

.metric-item:last-child {
    border-right: none;
}

.metric-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Dashboard Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.section-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin: 0;
}

.section-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.section-link:hover {
    color: var(--secondary-hover);
    text-decoration: underline;
}

.section-content {
    padding: 0;
}

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

.dashboard-table thead {
    background: var(--bg-secondary);
}

.dashboard-table th {
    padding: 12px 24px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-table td {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-primary);
}

.dashboard-table tbody tr {
    transition: background 0.15s ease;
}

.dashboard-table tbody tr:hover {
    background: var(--bg-secondary);
}

.dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-tertiary);
    font-size: 13px;
}

.package-distribution {
    padding: 24px;
}

.package-bar-item {
    margin-bottom: 24px;
}

.package-bar-item:last-child {
    margin-bottom: 0;
}

.package-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.package-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.package-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.package-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.package-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box input {
    padding: 10px 16px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 280px;
    font-size: 14px;
    transition: all 0.25s ease;
    background: var(--bg-primary);
    font-family: inherit;
}

.search-box input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-primary);
    padding: 6px;
    border-radius: 12px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
}

.filter-tab {
    padding: 10px 18px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.filter-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--secondary-color);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.2);
    font-weight: 600;
}

.date-filter input {
    padding: 12px 16px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 14px;
    background: var(--bg-primary);
    font-family: inherit;
}

.date-filter input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

/* Tables */
.table-container {
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

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

.data-table thead {
    background: linear-gradient(to bottom, var(--bg-tertiary), var(--bg-secondary));
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 14px;
    color: var(--text-primary);
}

.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: var(--bg-secondary);
    transform: scale(1.01);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

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

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-inactive {
    background: #fed7d7;
    color: #991b1b;
}

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

.status-rejected {
    background: #fed7d7;
    color: #991b1b;
}

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

.status-failed {
    background: #fed7d7;
    color: #991b1b;
}

.status-paused {
    background: #fef3c7;
    color: #92400e;
}

.status-cancelled {
    background: #fed7d7;
    color: #991b1b;
}

.status-pending_setup {
    background: #dbeafe;
    color: #1e40af;
}

.status-suspended {
    background: #fed7d7;
    color: #991b1b;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.package-card {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--secondary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-medium) 0%, var(--bronze) 100%);
}

.package-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.3);
}

.package-card h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.package-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.package-stats {
    background: linear-gradient(to bottom, var(--bg-tertiary), var(--bg-secondary));
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.package-stats p {
    margin: 10px 0;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.package-stats strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.package-features {
    list-style: none;
}

.package-features li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.6;
}

.package-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d1fae5;
    border-radius: 50%;
    font-size: 14px;
}

/* Reports */
.reports-section {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.report-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.report-filters select,
.report-filters input {
    padding: 12px 18px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
}

.report-filters select:focus,
.report-filters input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.report-content {
    margin-top: 32px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.report-table th,
.report-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.report-table th {
    background: var(--bg-tertiary);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.report-header {
    margin-bottom: 24px;
}

.report-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.report-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.report-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.report-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.report-error {
    text-align: center;
    padding: 60px 20px;
    color: var(--danger-color);
    background: #fee2e2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

.report-container {
    width: 100%;
}

.report-container h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.report-container h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.summary-card {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.summary-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.report-section {
    margin-bottom: 32px;
}

.report-table tbody tr:hover {
    background: var(--bg-secondary);
}

.report-table tbody tr:last-child td {
    border-bottom: none;
}

/* Settings */
.settings-section {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.settings-section h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-tertiary);
    letter-spacing: -0.02em;
}

.settings-form {
    max-width: 520px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    letter-spacing: -0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 18px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.25s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--bg-primary);
    margin: 40px auto;
    padding: 28px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.06);
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bg-tertiary);
    letter-spacing: -0.02em;
}

.close {
    position: absolute;
    right: 28px;
    top: 28px;
    font-size: 28px;
    font-weight: 400;
    color: var(--text-tertiary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.close:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    }

    .main-content {
        margin-left: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-content-wrapper {
        padding: 24px;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box input {
        width: 100%;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .page-header-section {
        padding: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .top-nav-bar {
        padding: 0 20px;
    }

    .logo-image {
        height: 40px;
    }

    .user-info {
        display: none;
    }

    .page-title {
        font-size: 24px;
    }
}

/* Dashboard KPI Loading Indicator */
.loading-indicator {
    color: var(--text-tertiary);
    font-size: 24px;
    font-weight: 400;
}

/* Payment Status Summary */
.payment-status-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 24px;
}

.status-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.status-card.status-paid {
    border-left: 4px solid var(--success-color);
}

.status-card.status-failed {
    border-left: 4px solid var(--danger-color);
}

.status-card.status-pending {
    border-left: 4px solid var(--warning-color);
}

.status-card .status-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.status-card .status-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Activity Feed */
.activity-feed {
    padding: 0;
    max-height: 500px;
    overflow-y: auto;
}

.activity-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: var(--bg-secondary);
}

.activity-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.activity-description {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
}

.activity-date {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 500;
    white-space: nowrap;
    margin-left: 12px;
}

.activity-client {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.activity-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

.activity-type.application {
    background: var(--info-color);
    color: white;
}

.activity-type.payment {
    background: var(--success-color);
    color: white;
}

.activity-type.failed {
    background: var(--danger-color);
    color: white;
}

.activity-type.client {
    background: var(--secondary-color);
    color: white;
}

/* Alerts Container */
.alerts-container {
    padding: 0;
}

.alert-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    border-left: 4px solid var(--warning-color);
    background: #fffbf0;
    transition: background 0.15s ease;
    cursor: pointer;
}

.alert-item:last-child {
    border-bottom: none;
}

.alert-item:hover {
    background: #fff8e1;
}

.alert-item.alert-critical {
    border-left-color: var(--danger-color);
    background: #fff5f5;
}

.alert-item.alert-critical:hover {
    background: #ffebee;
}

.alert-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.alert-icon {
    font-size: 18px;
    margin-right: 8px;
}

.alert-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.alert-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--danger-color);
    background: white;
    padding: 2px 8px;
    border-radius: 12px;
}

.alert-description {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Responsive adjustments for dashboard */
@media (max-width: 1200px) {
    .metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-status-summary {
        grid-template-columns: 1fr;
    }
    
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .metrics-row {
        grid-template-columns: 1fr;
    }
    
    .metric-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .metric-item:last-child {
        border-bottom: none;
    }
}
