/* 
 * DGWeb SaaS - Elite Design System
 * Obsidian & Amber Gold Aesthetic
 */

:root {
    --bg-dark: #0a0a0b;
    --surface: #121214;
    --surface-hover: #18181b;
    --primary: #d4af37;
    /* Amber Gold */
    --primary-hover: #f1c40f;
    --text: #f8fafc;
    --text-dim: #94a3b8;
    --border: rgba(212, 175, 55, 0.2);
    --border-dim: rgba(255, 255, 255, 0.05);
    --red: #ef4444;
    --green: #10b981;
    --glass: rgba(18, 18, 20, 0.8);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --glow: 0 0 15px rgba(212, 175, 55, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Glass Card */
.elite-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-dim);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.elite-card:hover {
    border-color: var(--border);
    transform: translateY(-2px);
    box-shadow: var(--shadow), var(--glow);
}

/* Typography */
h1,
h2,
h3 {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: 1px solid transparent;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: #000;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* Inputs */
input,
select {
    background: #000;
    border: 1px solid var(--border-dim);
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    width: 100%;
    outline: none;
    transition: all 0.2s;
}

input:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green);
    border: 1px solid var(--green);
}

.badge-expired {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
    border: 1px solid var(--red);
}

.badge-pending {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid #fbbf24;
}

.badge-revoked {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
    border: 1px solid var(--red);
}

/* Header */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border-dim);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* License Form Grid */
.license-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .license-form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Copy Button */
.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

.btn-copy:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.05);
    border-color: var(--primary);
}

.btn-copy:active {
    transform: scale(0.95);
}

.btn-copy svg {
    width: 14px;
    height: 14px;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--surface);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: var(--shadow), var(--glow);
    animation: slideIn 0.3s ease-out;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
}

.toast.success {
    border-color: var(--green);
}

.toast.error {
    border-color: var(--red);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* License Key Display */
.license-key-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid var(--border-dim);
}

.license-key-text {
    font-family: 'Courier New', monospace;
    color: var(--primary);
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 0.5px;
    flex: 1;
}

/* Info Box */
.info-box {
    display: flex;
    align-items: start;
    gap: 10px;
    padding: 12px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 10px;
}

.info-box svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
}

.status-indicator.locked {
    color: var(--red);
}

.status-indicator.unlocked {
    color: var(--green);
}

.status-indicator svg {
    width: 14px;
    height: 14px;
}

/* Mobile Menu Defaults (Hidden on Desktop) */
.btn-mobile-menu {
    display: none;
}

.mobile-drawer {
    display: none;
}

.mobile-overlay {
    display: none;
}

/* Mobile Menu Responsive Logic */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .nav-desktop {
        display: none !important;
    }

    .btn-mobile-menu {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: var(--primary);
        font-size: 24px;
        cursor: pointer;
        padding: 5px;
        z-index: 200;
    }

    .mobile-drawer {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: #000;
        border-right: 1px solid var(--border);
        z-index: 1000;
        transition: left 0.3s ease;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .mobile-drawer.active {
        left: 0;
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        z-index: 999;
        display: none;
        backdrop-filter: blur(4px);
    }

    .mobile-overlay.active {
        display: block;
    }

    .mobile-nav-link {
        display: block;
        padding: 12px 15px;
        color: #fff;
        text-decoration: none;
        border-radius: 8px;
        font-weight: 600;
        transition: 0.2s;
        border: 1px solid transparent;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        background: rgba(212, 175, 55, 0.1);
        color: var(--primary);
        border-color: var(--border);
    }
}