/* =========================================================
   Uraan CSC - main stylesheet
   Theme: white background, indigo accent (#6366f1)
   ========================================================= */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #eef2ff;
    --text-dark: #1e1b3a;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --radius: 12px;
    --shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, -apple-system, Arial, sans-serif;
    color: var(--text-dark);
    background: #ffffff;
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------------- Header ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}

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

.logo-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

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

.main-nav a:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }

.btn-block { width: 100%; }

.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* ---------------- Hero ---------------- */
.hero {
    background: linear-gradient(180deg, var(--primary-light) 0%, #ffffff 100%);
    padding: 70px 20px 60px;
    text-align: center;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    max-width: 780px;
    margin: 0 auto 16px;
    color: var(--text-dark);
}

.hero h1 span { color: var(--primary); }

.hero p {
    max-width: 620px;
    margin: 0 auto 30px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 46px;
    flex-wrap: wrap;
}

.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-size: 1.6rem; color: var(--primary); }
.hero-stats span { color: var(--text-muted); font-size: 0.9rem; }

/* ---------------- Sections ---------------- */
.section { padding: 60px 20px; }
.section-alt { background: #f8f9ff; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.section-head p { color: var(--text-muted); }

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

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
    font-weight: 700;
}

.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.card .price { margin-top: 12px; font-weight: 700; color: var(--primary); }

.category-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

/* ---------------- Forms ---------------- */
.auth-wrap {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background: var(--primary-light);
}

.auth-card {
    background: #fff;
    width: 100%;
    max-width: 460px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px;
}

.auth-card.wide { max-width: 620px; }

.auth-card h2 { margin-top: 0; text-align: center; }
.auth-card .sub { text-align: center; color: var(--text-muted); margin-bottom: 26px; font-size: 0.92rem; }

.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }

input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=file], select, textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.form-foot { text-align: center; margin-top: 18px; font-size: 0.9rem; color: var(--text-muted); }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}
.alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-info { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #c7d2fe; }

/* ---------------- Dashboard ---------------- */
.dash-shell { display: flex; min-height: calc(100vh - 68px); }

.dash-sidebar {
    width: 230px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid var(--border);
    padding: 24px 0;
}

.dash-sidebar a {
    display: block;
    padding: 11px 24px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.92rem;
    border-left: 3px solid transparent;
}

.dash-sidebar a:hover, .dash-sidebar a.active {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
}

.dash-main { flex: 1; padding: 30px; background: #f8f9ff; }

.dash-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 30px; }

.stat-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.stat-box strong { display: block; font-size: 1.5rem; color: var(--primary); }
.stat-box span { color: var(--text-muted); font-size: 0.85rem; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
th { background: var(--primary-light); color: var(--primary-dark); font-weight: 700; }

.badge { padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: capitalize; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-processing { background: #dbeafe; color: #1d4ed8; }
.badge-completed { background: #dcfce7; color: #166534; }
.badge-rejected { background: #fee2e2; color: #b91c1c; }
.badge-active { background: #dcfce7; color: #166534; }
.badge-blocked { background: #fee2e2; color: #b91c1c; }

/* ---------------- Footer ---------------- */
.site-footer { background: #14103c; color: #cbd5e1; padding: 50px 20px 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; max-width: 1160px; margin: 0 auto; }
.footer-grid h4 { color: #fff; margin-bottom: 14px; font-size: 0.95rem; }
.footer-grid a { display: block; color: #cbd5e1; font-size: 0.88rem; margin-bottom: 8px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { text-align: center; margin-top: 36px; padding-top: 20px; border-top: 1px solid #2b2760; font-size: 0.82rem; color: #9ca3c9; }

@media (max-width: 860px) {
    .main-nav { display: none; }
    .nav-toggle { display: block; }
    .dash-sidebar { display: none; }
    .form-row { grid-template-columns: 1fr; }
}
