/* NOX Engine Dashboard - Shared Styles */
/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
}

/* Container Layout */
.dashboard-container {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.dashboard-wrapper {
    display: flex;
    width: 100%;
    max-width: 920px;
    gap: 0;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background: #1a1a1a;
    border-right: 1px solid #2a2a2a;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
    border-radius: 12px 0 0 12px;
    transition: width 0.3s ease, padding 0.3s ease;
    overflow: hidden;
}

.sidebar.collapsed {
    width: 80px;
    padding: 20px 12px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 25px;
    position: relative;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 18px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-title {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-toggle {
    position: absolute;
    right: -12px;
    top: 6px;
    width: 24px;
    height: 24px;
    background: #2a2a2a;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.sidebar-toggle:hover {
    background: #3a3a3a;
    transform: scale(1.1);
}

.sidebar-toggle i {
    color: white;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon arrow berubah arah ketika sidebar collapsed */
.sidebar.collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #9ca3af;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    position: relative;
}

.sidebar.collapsed .sidebar-menu a {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .sidebar-menu .text,
.sidebar.collapsed .sidebar-menu a span:not(.icon) {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-menu a .icon {
    margin: 0;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #2a2a2a;
    color: #8b5cf6;
}

.sidebar-menu .icon {
    font-size: 18px;
}

.sidebar-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #2a2a2a;
}

.sidebar.collapsed .sidebar-footer button {
    padding: 12px;
    font-size: 0;
}

.sidebar.collapsed .sidebar-footer button i {
    margin: 0 !important;
}

.user-info {
    padding: 12px;
    background: #2a2a2a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.user-role, .user-email {
    font-size: 11px;
    color: #9ca3af;
}

/* Main Content */
.main-content {
    flex: 1;
    background: #1a1a1a;
    border-radius: 0 12px 12px 0;
    border: 1px solid #2a2a2a;
    border-left: none;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 20px;
    border-bottom: 1px solid #2a2a2a;
    gap: 16px;
}

.top-bar h1, .top-bar h2 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.top-bar-search {
    flex: 1;
    max-width: 400px;
}

.top-bar-search input {
    width: 100%;
    padding: 8px 14px;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    background: #0a0a0a;
    color: #e0e0e0;
    font-size: 13px;
    transition: 0.3s;
}

.top-bar-search input:focus {
    outline: none;
    border-color: #8b5cf6;
}

.top-bar-search input::placeholder {
    color: #6b7280;
}

.top-bar-actions {
    display: flex;
    gap: 8px;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
    font-size: 13px;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #3a3a3a;
}

.btn-secondary:hover {
    background: #3a3a3a;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

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

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.btn-icon {
    padding: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-link {
    background: none;
    color: #8b5cf6;
    text-decoration: none;
    padding: 10px 0;
    text-align: center;
    display: block;
    margin-top: 10px;
    font-size: 13px;
    border: none;
    cursor: pointer;
}

.btn-link:hover {
    color: #7c3aed;
    text-decoration: underline;
}

/* Stats Cards */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    padding: 20px;
}

.stat-card {
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    padding: 16px;
    border-radius: 8px;
    transition: 0.3s;
    text-align: center;
}

.stat-card:hover {
    border-color: #8b5cf6;
    transform: translateY(-2px);
}

.stat-card h3, .stat-card h4 {
    color: #9ca3af;
    font-size: 11px;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 500;
}

.stat-card .number {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.stat-card.pending .number { color: #fbbf24; }
.stat-card.approved .number { color: #10b981; }
.stat-card.rejected .number { color: #ef4444; }
.stat-card.licenses .number { color: #8b5cf6; }

/* Content Section */
.content-section {
    padding: 20px;
}

.content-section h2 {
    margin-bottom: 16px;
    color: #fff;
    font-size: 18px;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2a2a;
}

.filter-tabs button, .filter-tab {
    padding: 6px 12px;
    border: 1px solid #2a2a2a;
    background: #2a2a2a;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.3s;
    font-size: 12px;
}

.filter-tabs button:hover, .filter-tab:hover {
    background: #3a3a3a;
}

.filter-tabs button.active, .filter-tab.active {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    border-color: #8b5cf6;
}

/* Cards */
.request-card, .license-card, .config-card, .setting-card {
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: 0.3s;
    background: #1a1a1a;
}

.request-card:hover, .license-card:hover, .config-card:hover, .setting-card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

/* Config card focus state - yellow border when any input inside is focused */
.config-card:focus-within {
    border-color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.request-header, .license-header, .config-header, .setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.request-header strong, .license-header strong {
    color: #fff;
    font-size: 14px;
}

.config-header h3, .setting-header h3 {
    font-size: 16px;
    color: #fff;
    margin: 0;
}

.config-header p {
    font-size: 12px;
    color: #9ca3af;
    margin: 4px 0 0 0;
}

.request-header .timestamp {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Status Badges */
.status, .badge {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}

.status.pending, .badge-warning {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status.approved, .status.active, .badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status.rejected, .badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status.revoked {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Status Indicator (for online/offline) */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.status-online {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-offline {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Details Grid */
.request-details, .license-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
    background: #1a1a1a;
    border-radius: 6px;
}

.request-details .detail, .license-info .detail {
    font-size: 11px;
}

.request-details .detail strong, .license-info .detail strong {
    display: block;
    color: #9ca3af;
    margin-bottom: 4px;
    font-size: 10px;
    text-transform: uppercase;
}

.request-details .detail span, .license-info .detail span {
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

.machine-id {
    font-family: 'Courier New', monospace;
    font-size: 9px;
    word-break: break-all;
    grid-column: 1 / -1;
}

/* Actions */
.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.actions input {
    flex: 1;
    min-width: 100px;
    padding: 8px;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    background: #0a0a0a;
    color: #e0e0e0;
    font-size: 12px;
}

.actions input:focus {
    outline: none;
    border-color: #8b5cf6;
}

/* Form Elements */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #9ca3af;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    background: #0a0a0a;
    color: #e0e0e0;
    font-size: 13px;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #0a0a0a;
    color: #e0e0e0;
    padding: 10px;
}

.form-group select option:hover {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b5cf6;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

input[readonly] {
    background: #1a1a1a;
    color: #6b7280;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-row .form-group {
    margin-bottom: 18px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    background: #0a0a0a;
    color: #e0e0e0;
    font-size: 13px;
}

select.form-control {
    cursor: pointer;
}

select.form-control option {
    background: #0a0a0a;
    color: #e0e0e0;
    padding: 10px;
}

select.form-control option:hover {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #8b5cf6;
}

.form-text {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #6b7280;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2a2a2a;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #8b5cf6;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Radio Buttons */
.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 6px;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
}

.radio-label:hover {
    border-color: #8b5cf6;
    background: #1a1a1a;
}

.radio-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
    color: #8b5cf6;
    font-weight: 500;
}

.radio-label span {
    color: #9ca3af;
    font-size: 13px;
    transition: color 0.3s ease;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 28px;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    color: #fff;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
}

.modal-close:hover {
    color: #fff;
}

/* Auth Section */
.auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.auth-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.1) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.auth-box, .auth-container {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 48px;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-logo, .auth-logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 32px;
    margin: 0 auto 32px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    position: relative;
}

.auth-logo::after, .auth-logo-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border-radius: 24px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(20px);
}

.auth-box h2, .auth-logo h1 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 28px;
    text-align: center;
}

.auth-box p, .auth-logo p {
    color: #9ca3af;
    margin-bottom: 32px;
    text-align: center;
    font-size: 14px;
}

.auth-box .form-group input, .auth-container .form-group input {
    padding: 14px;
    font-size: 14px;
}

.auth-box .btn-primary, .auth-container .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Alerts / Messages */
.alert, .message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    border: 1px solid;
}

.alert-success, .message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.alert-error, .message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.alert-warning, .message.warning {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}

.alert-info {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.3);
}

/* Toast Notifications (Top Right) */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    min-width: 250px;
    max-width: 400px;
    word-wrap: break-word;
}

.toast-show {
    transform: translateX(0);
    opacity: 1;
}

.toast-hide {
    transform: translateX(400px);
    opacity: 0;
}

.toast-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.4);
}

.toast-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

.toast-warning {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.4);
}

.toast-info {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.4);
}

/* Tables */
.license-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.license-table th,
.license-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #2a2a2a;
    font-size: 13px;
}

.license-table th {
    background: #0f0f0f;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    font-size: 11px;
}

.license-table tr:hover {
    background: #0f0f0f;
}

.license-table code {
    background: #0a0a0a;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #8b5cf6;
}

/* Config Grid */
.config-grid, .settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #2a2a2a;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.info-value {
    font-size: 13px;
    color: #fff;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
    font-size: 13px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    color: #9ca3af;
    margin-bottom: 8px;
}

.logout-btn {
    width: 100%;
    margin-top: 12px;
}

/* Top Bar User Info */
.top-bar-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.top-bar-user:hover {
    background: #0a0a0a;
}

.top-bar-user .user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
}

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

.top-bar-user .user-name {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    line-height: 1.3;
}

.top-bar-user .user-email {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.3;
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    min-width: 260px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #2a2a2a;
}

.user-dropdown-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 16px;
}

.user-dropdown-info {
    flex: 1;
}

.user-dropdown-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.user-dropdown-email {
    font-size: 12px;
    color: #9ca3af;
}

.user-dropdown-divider {
    height: 1px;
    background: #2a2a2a;
    margin: 4px 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.user-dropdown-item:hover {
    background: #0a0a0a;
    color: #8b5cf6;
}

.user-dropdown-item .icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.top-bar-title h2 {
    font-size: 18px;
    color: #fff;
    margin: 0;
}

.modal-body {
    margin: 0;
}

/* Modal form labels - ensure left alignment */
.modal-content .form-group label {
    text-align: left;
}

.modal-content .info-row {
    text-align: left;
}

.modal-content .info-label,
.modal-content .info-value {
    text-align: left;
}

/* Override modal-notification center alignment for user modal */
#user-modal .modal-body,
#editLabelModal .modal-body,
#json-modal .modal-body {
    text-align: left;
}

#user-modal .modal-body .form-group,
#editLabelModal .modal-body .form-group,
#json-modal .modal-body .form-group {
    text-align: left;
}

#user-modal .modal-body .form-group > div,
#editLabelModal .modal-body .form-group > div,
#json-modal .modal-body .form-group > div {
    text-align: left;
}

/* Proxy & Logs */
.proxy-list, .logs {
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.proxy-list {
    color: #8b5cf6;
    max-height: 200px;
}

.logs {
    color: #e0e0e0;
}

.proxy-entry, .log-entry {
    padding: 4px 0;
    border-bottom: 1px solid rgba(42, 42, 42, 0.3);
}

.proxy-entry:last-child, .log-entry:last-child {
    border-bottom: none;
}

.log-timestamp {
    color: #9ca3af;
    margin-right: 8px;
}

.log-level-info { color: #10b981; }
.log-level-warn { color: #fbbf24; }
.log-level-error { color: #ef4444; }

/* Responsive */
@media (max-width: 768px) {
    .dashboard-wrapper {
        flex-direction: column;
        max-width: 100%;
    }

    .sidebar {
        width: 100%;
        border-radius: 12px;
        margin-bottom: 20px;
        position: static;
    }

    .main-content {
        border-radius: 12px;
        border-left: 1px solid #2a2a2a;
    }

    .config-grid, .settings-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .license-table {
        font-size: 12px;
    }

    .license-table th,
    .license-table td {
        padding: 8px;
    }

    .auth-box, .auth-container {
        padding: 32px;
    }

    .top-bar {
        flex-wrap: wrap;
    }
}
