/* Cryon Dashboard - Prestige Style CSS */

:root {
    --bg-primary: #0f0f11;
    --bg-secondary: #161618;
    --bg-card: #1a1a1d;
    --bg-input: #1e1e21;
    --sidebar-bg: #0c0c0e;
    --accent-purple: #7c3aed;
    --accent-green: #10b981;
    --accent-cyan: #06b6d4;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-color: #2d2d30;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #3d3d40;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4d4d50;
}

/* Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-title {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 20px;
    margin-bottom: 8px;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-nav li a:hover {
    background: rgba(124, 58, 237, 0.1);
    color: var(--text-primary);
}

.sidebar-nav li a.active {
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-purple);
    border-left-color: var(--accent-purple);
}

.sidebar-nav li a i {
    width: 18px;
    text-align: center;
}

.badge-stable {
    background: var(--accent-green);
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    margin-left: auto;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 240px;
    min-height: 100vh;
}

/* Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
}

.logo .accent {
    color: var(--accent-purple);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-email {
    color: var(--text-secondary);
    font-size: 14px;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-logout {
    background: var(--accent-purple);
    color: white;
}

.btn-logout:hover {
    background: #6d28d9;
}

.btn-home {
    background: #374151;
    color: white;
}

.btn-home:hover {
    background: #4b5563;
}

.btn-green {
    background: var(--accent-green);
    color: white;
}

.btn-green:hover {
    background: #059669;
}

.btn-purple {
    background: var(--accent-purple);
    color: white;
}

.btn-purple:hover {
    background: #6d28d9;
}

/* Page Content */
.page-content {
    padding: 30px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 30px;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.input-with-icon {
    position: relative;
}

.input-with-icon .form-control {
    padding-right: 45px;
}

.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-cyan);
    cursor: pointer;
}

/* Two Column Layout */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.three-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

/* HWID Box */
.hwid-box {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
}

.hwid-title {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 15px;
}

.btn-small {
    padding: 6px 20px;
    font-size: 12px;
}

/* License Key */
.license-badge {
    display: inline-block;
    background: var(--accent-green);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.license-key-box {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 15px;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.license-status {
    color: var(--accent-green);
    font-size: 12px;
}

/* Download Card */
.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
}

.download-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.new-badge {
    background: var(--accent-green);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.download-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 25px;
}

.download-box {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.download-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.download-desc {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 15px;
}

.version-info {
    color: var(--accent-green);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 15px;
}

.feature-list {
    list-style: none;
    margin-bottom: 20px;
}

.feature-list li {
    font-size: 13px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-list li.check::before {
    content: "✓";
    color: var(--accent-green);
    font-weight: bold;
}

.feature-list li.cross::before {
    content: "✗";
    color: var(--danger);
    font-weight: bold;
}

.btn-download {
    background: var(--accent-green);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-download:hover {
    background: #059669;
}

.warning-badge {
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-left: 10px;
}

.download-preview {
    width: 250px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Version Dropdown */
.version-select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
}

/* Login/Register Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
}

.auth-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}

.auth-logo .accent {
    color: var(--accent-purple);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    margin-top: 10px;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-link a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {
    .two-columns {
        grid-template-columns: 1fr;
    }
    
    .three-columns {
        grid-template-columns: 1fr;
    }
    
    .download-box {
        flex-direction: column;
    }
    
    .download-preview {
        width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
}
