/* =========================================================
   GLOBAL RESET & BASE
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

body {
    background: #f4f6f9;
    color: #2c2f36;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
}

/* =========================================================
   HEADER (BOXED – UNLOCK TOOL STYLE)
========================================================= */
.header-wrap {
    background: #1c1f26;
    border-bottom: 1px solid #2b2f3a;
}

.header {
    max-width: 1200px;
    margin: auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    color: #1f6feb;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Navigation */
.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    color: #c7c9d1;
    font-size: 14px;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #1f6feb;
    transition: width 0.25s ease;
}

.nav a:hover {
    color: #ffffff;
}

.nav a:hover::after {
    width: 100%;
}

/* Auth Buttons (Fixed to always show) */
.auth-buttons {
    width: 220px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    visibility: visible; /* always visible */
}

.auth-buttons a {
    min-width: 92px;
    text-align: center;
    padding: 7px 14px;
    border-radius: 4px;
    background: #1f6feb;
    color: #ffffff;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.auth-buttons a:hover {
    background: #155acb;
    transform: translateY(-1px);
}

/* =========================================================
   CONTAINERS
========================================================= */
.container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
}

/* =========================================================
   ALERTS / MESSAGES
========================================================= */
.alert {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 14px;
}

.alert-success {
    background: #e8f4ec;
    color: #1e7e34;
    border: 1px solid #cce5d3;
}

.alert-error {
    background: #fdeaea;
    color: #a71d2a;
    border: 1px solid #f5c2c7;
}

.alert-info {
    background: #e9f2ff;
    color: #0b5ed7;
    border: 1px solid #cfe2ff;
}

.field-error {
    margin-bottom: 12px;
    font-size: 13px;
    color: #a71d2a; /* red */
    text-align: center;
}

/* =========================================================
   FORMS
========================================================= */
.form-box {
    background: #ffffff;
    max-width: 380px;
    width: 100%;
    margin: 50px auto;
    padding: 26px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.form-box h2 {
    margin-bottom: 22px;
    text-align: center;
    color: #1f6feb;
    font-weight: 600;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #555;
}

.form-box input {
    width: 100%;
    padding: 11px 12px;
    border-radius: 5px;
    border: 1px solid #ccd1d9;
    font-size: 14px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-box input:focus {
    outline: none;
    border-color: #1f6feb;
    box-shadow: 0 0 0 2px rgba(31, 111, 235, 0.15);
}

/* Buttons */
.form-box button {
    width: 100%;
    padding: 11px;
    background: #1f6feb;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.form-box button:hover {
    background: #155acb;
    transform: translateY(-1px);
}

/* Links */
.form-links {
    margin-top: 14px;
    text-align: center;
}

.form-links a {
    font-size: 13px;
    color: #1f6feb;
    text-decoration: none;
}

.form-links a:hover {
    text-decoration: underline;
}

/* ================================ DASHBOARD ================================ */
.dashboard-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
}

.dashboard-container h2 {
    color: #1f6feb;
    margin-bottom: 30px;
    font-size: 26px;
}

/* Card for user info */
.dashboard-card {
    background: #fff;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.dashboard-card h3 {
    color: #1f6feb;
    margin-bottom: 20px;
    text-align: center;
}

.user-detail {
    font-size: 15px;
    margin-bottom: 10px;
    color: #333;
}

/* Loading text */
.loading-text {
    color: #999;
    text-align: center;
    font-style: italic;
}

/* Logout Button */
.logout-wrapper {
    margin-top: 30px;
}

.btn-logout {
    background: #ff4d4d;
    color: #fff;
    padding: 12px 28px;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-logout:hover {
    background: #e60000;
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
    background: #1c1f26;
    color: #a8acb5;
    text-align: center;
    padding: 16px;
    font-size: 13px;
    border-top: 1px solid #2b2f3a;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {

    .header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav {
        width: 100%;
        justify-content: center;
        gap: 14px;
    }

    .auth-buttons {
        width: 100%;
        justify-content: center;
    }

    .auth-buttons a {
        flex: 1;
        max-width: 140px;
    }

    .container {
        margin: 30px 12px;
    }
}

@media (max-width: 480px) {

    .logo {
        font-size: 18px;
    }

    .form-box {
        margin: 30px 12px;
        padding: 22px 18px;
    }

    .form-box h2 {
        font-size: 18px;
    }
}

/* =========================================================
   DOWNLOAD PAGE
========================================================= */
.download-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
}

.download-container h2 {
    font-size: 28px;
    color: #1f6feb;
    margin-bottom: 12px;
}

.download-subtitle {
    font-size: 15px;
    color: #555;
    margin-bottom: 30px;
}

.download-card {
    background: #f4f6f9;
    padding: 25px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.download-card h3 {
    font-size: 22px;
    color: #1f6feb;
    margin-bottom: 8px;
}

.download-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.download-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.download-links a.btn-download {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #1f6feb;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.download-links a.btn-download i {
    font-size: 16px;
}

.download-links a.btn-download:hover {
    background: #155acb;
    transform: translateY(-2px);
}

/* =========================================================
   SUPPORTED MODELS PAGE
========================================================= */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.model-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.model-card h3 {
    color: #1f6feb;
    margin-bottom: 12px;
    font-size: 18px;
}

.model-card ul {
    list-style: disc inside;
    padding-left: 0;
    color: #333;
    font-size: 14px;
}

.model-card li {
    margin-bottom: 6px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .models-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .models-grid {
        grid-template-columns: 1fr;
    }
    .model-card {
        padding: 16px;
    }
}
