/* * assets/css/style.css
 * Global Styles, Pricing, Auth & Dashboard
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

:root {
    --brand-primary: #3498db;
    --brand-dark: #2c3e50;
    --brand-light: #ecf0f1;
    --text-color: #34495e;
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
    --danger-color: #e74c3c;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0,0,0,0.05);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
    padding-top: 80px; /* Navbar height */
}

h1, h2, h3, h4, h5 { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--brand-dark); }
a { text-decoration: none; color: var(--brand-primary); transition: 0.3s; }
ul { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------------------------------------------------------
   NAVBAR
--------------------------------------------------------- */
.navbar {
    background: #fff;
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand-dark);
}

.logo-box {
    background: var(--brand-primary);
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: var(--brand-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-btn-fill {
    background: var(--brand-primary);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 5px;
}
.nav-btn-fill:hover { background: #2980b9; }

.nav-btn-outline {
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary) !important;
    padding: 7px 19px;
    border-radius: 5px;
}

/* Mobile Menu Toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 25px; height: 3px; background: var(--brand-dark); }

/* ---------------------------------------------------------
   HERO SECTION
--------------------------------------------------------- */
.hero-section {
    text-align: center;
    padding: 60px 0 40px;
}
.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero-section .highlight { color: var(--brand-primary); }
.hero-section p { font-size: 1.1rem; color: #7f8c8d; }

/* ---------------------------------------------------------
   PRICING GRID
--------------------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.plan-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.plan-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan-card.featured { border: 2px solid var(--brand-primary); transform: scale(1.02); }

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-primary);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.card-header { text-align: center; margin-bottom: 20px; border-bottom: 1px solid #f5f5f5; padding-bottom: 20px; }
.price { font-size: 2.5rem; font-weight: 800; color: var(--brand-dark); }
.period { font-size: 1rem; color: #95a5a6; font-weight: 400; }
.desc { color: #7f8c8d; font-size: 0.9rem; margin-top: 10px; }

.card-features ul { margin-top: 10px; }
.card-features li { margin-bottom: 8px; font-size: 0.95rem; }
.feature-group { margin-bottom: 20px; }
.feature-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #bdc3c7;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: 0.3s;
}
.btn-outline { background: transparent; border: 1px solid var(--brand-primary); color: var(--brand-primary); }
.btn-outline:hover { background: var(--brand-primary); color: #fff; }
.btn-fill { background: var(--brand-primary); color: #fff; }
.btn-fill:hover { background: #2980b9; }

/* ---------------------------------------------------------
   CONFIGURATOR (CART & ADDONS)
--------------------------------------------------------- */
.configurator-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: var(--shadow);
    border: 1px solid #eee;
}

.config-header { text-align: center; margin-bottom: 40px; }

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.config-col h3 { font-size: 1.1rem; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #eee; }

.input-group { margin-bottom: 15px; }
.input-group label { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 5px; font-weight: 500; }
.input-group label span { color: var(--brand-primary); font-weight: 700; }

.modern-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}
.modern-input:focus { outline: none; border-color: var(--brand-primary); }

/* Radio Cards */
.radio-options { display: flex; flex-direction: column; gap: 10px; }
.radio-card {
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}
.radio-card:hover { border-color: var(--brand-primary); background: #fdfdfd; }
.radio-card input { margin-right: 15px; accent-color: var(--brand-primary); }
.radio-content { display: flex; flex-direction: column; }
.radio-content small { font-size: 0.8rem; color: #7f8c8d; }

/* Checkbox Cards */
.checkbox-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.2s;
}
.checkbox-card:hover { border-color: var(--brand-primary); }
.checkbox-card input { margin-right: 15px; width: 18px; height: 18px; accent-color: var(--brand-primary); }
.cb-content { flex: 1; display: flex; flex-direction: column; }
.cb-content small { font-size: 0.8rem; color: #95a5a6; }
.price-tag { font-weight: 700; color: var(--brand-primary); }

.checkout-bar {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.summary .label { display: block; font-size: 0.9rem; color: #7f8c8d; }
.summary .total-amount { font-size: 2rem; font-weight: 800; color: var(--brand-dark); }
.btn-checkout { width: auto; padding: 15px 40px; font-size: 1.1rem; background: #2ecc71; color: white; }
.btn-checkout:hover { background: #27ae60; }

/* ---------------------------------------------------------
   AUTH PAGES (LOGIN / REGISTER)
--------------------------------------------------------- */
.auth-container {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}
.auth-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
}
.auth-card h2 { text-align: center; margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 0.9rem; font-weight: 500; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 0.9rem; }

/* ---------------------------------------------------------
   MY DASHBOARD STYLES (NEW)
--------------------------------------------------------- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 50px;
}

.dashboard-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.dashboard-card h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.p-item label {
    display: block;
    font-size: 0.75rem;
    color: #95a5a6;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.p-item div {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
    word-break: break-word;
}
.p-item.full { grid-column: span 2; border-top: 1px dashed #f0f0f0; padding-top: 10px; margin-top: 5px;}

/* Subscription Card */
.sub-card { border-top: 4px solid var(--brand-primary); }
.sub-card.empty { text-align: center; padding: 40px; }
.btn-upgrade { display: inline-block; margin-top: 15px; padding: 10px 25px; background: var(--success-color); color: white; border-radius: 5px; }

.card-header-dash {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.card-header-dash h3 { border: none; padding: 0; margin: 0; }

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dash-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}
.dash-row:last-of-type { border-bottom: none; }
.dash-row .label { color: #7f8c8d; font-size: 0.95rem; }
.dash-row .value { color: #2c3e50; font-weight: 600; font-size: 1rem; }

.dash-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.btn-dash {
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    border: none;
    flex: 1;
    transition: 0.2s;
}

.btn-invoice {
    background-color: #3498db;
    color: #fff;
}
.btn-invoice:hover { background-color: #2980b9; transform: translateY(-2px); }

.btn-cancel {
    background-color: #fff;
    border: 1px solid #e74c3c;
    color: #e74c3c;
}
.btn-cancel:hover { background-color: #e74c3c; color: #fff; }

.cancel-warning {
    color: #e67e22;
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    width: 100%;
    text-align: center;
    background: #fff3e0;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ffe0b2;
}

/* ---------------------------------------------------------
   UTILITIES & ANIMATIONS
--------------------------------------------------------- */
.loading-pulse {
    text-align: center;
    padding: 50px;
    color: #bdc3c7;
    font-size: 1.2rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.alert-error {
    background: #fadbd8;
    color: #c0392b;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e6b0aa;
    text-align: center;
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }
    .nav-links.active { display: flex; }
    .nav-toggle { display: flex; }
    
    .pricing-grid { grid-template-columns: 1fr; }
    .config-grid { grid-template-columns: 1fr; }
    
    .dashboard-grid { grid-template-columns: 1fr; }
    .checkout-bar { flex-direction: column; gap: 20px; text-align: center; }
    .btn-checkout { width: 100%; }
}