/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a { text-decoration: none; color: inherit; }

/* ===== Navbar ===== */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    height: 42px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: #1e3a5f;
}

.brand-sub {
    font-size: 0.75rem;
    color: #64748b;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-menu a {
    font-weight: 500;
    color: #475569;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 4px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #2563eb;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #2563eb;
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-outline-nav {
    background: transparent;
    border: 1.5px solid #2563eb;
    color: #2563eb;
}

.btn-outline-nav:hover {
    background: #eff6ff;
}

.btn-primary-nav {
    background: #2563eb;
    color: white;
}

.btn-primary-nav:hover {
    background: #1d4ed8;
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
    padding: 60px 0 40px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-tag {
    color: #2563eb;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.hero-left h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero-desc {
    color: #475569;
    font-size: 1.05rem;
    max-width: 480px;
    margin-bottom: 28px;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #2563eb;
    color: white;
    padding: 13px 26px;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-outline {
    background: white;
    color: #2563eb;
    border: 1.5px solid #2563eb;
    padding: 12px 24px;
}

.btn-outline:hover {
    background: #eff6ff;
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
    display: flex;
    justify-content: center;
}

.laptop-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.15);
    padding: 24px;
    width: 320px;
    position: relative;
    z-index: 2;
}

.laptop-screen h4 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 16px;
    text-align: center;
}

.fake-input {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
    color: #94a3b8;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fake-btn {
    width: 100%;
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 8px;
    cursor: pointer;
}

.float-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    z-index: 3;
}

.icon-1 { background: #3b82f6; top: 10%; left: 5%; }
.icon-2 { background: #22c55e; top: 5%; right: 10%; }
.icon-3 { background: #6366f1; bottom: 25%; left: 0; }
.icon-4 { background: #2563eb; bottom: 15%; right: 5%; width: 56px; height: 56px; font-size: 1.4rem; }

/* ===== Features ===== */
.features-section {
    padding: 60px 0 80px;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-box {
    text-align: center;
    padding: 10px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4rem;
    color: white;
}

.feature-icon.blue { background: #3b82f6; }
.feature-icon.green { background: #22c55e; }
.feature-icon.purple { background: #a855f7; }
.feature-icon.orange { background: #f97316; }

.feature-box h3 {
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 8px;
}

.feature-box p {
    color: #64748b;
    font-size: 0.92rem;
}

/* ===== Footer ===== */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 22px 0;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-right {
    color: #cbd5e1;
}

/* ===== Auth & Forms (shared) ===== */
.auth-container {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f8fafc;
}

.auth-card, .form-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    width: 100%;
    max-width: 440px;
}

.form-card { max-width: 600px; margin: 40px auto; }

.auth-card h2, .form-card h2 {
    text-align: center;
    color: #0f172a;
    margin-bottom: 6px;
    font-size: 1.5rem;
}

.auth-subtitle, .form-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 28px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border 0.2s;
    background: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    padding: 13px;
}

.auth-footer {
    text-align: center;
    margin-top: 22px;
    color: #64748b;
    font-size: 0.9rem;
}

.auth-footer a {
    color: #2563eb;
    font-weight: 600;
}

/* ===== Dashboard & Table ===== */
.page-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 24px;
}

.page-title {
    font-size: 1.7rem;
    color: #0f172a;
    margin-bottom: 6px;
}

.page-subtitle {
    color: #64748b;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.stat-card i {
    font-size: 1.6rem;
    color: #2563eb;
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 1.9rem;
    color: #0f172a;
}

.stat-card.pending i { color: #d97706; }
.stat-card.progress i { color: #2563eb; }
.stat-card.resolved i { color: #16a34a; }

.table-responsive {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    overflow-x: auto;
}

.complaints-table {
    width: 100%;
    border-collapse: collapse;
}

.complaints-table th,
.complaints-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.complaints-table th {
    background: #0f172a;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.complaints-table tr:hover {
    background: #f8fafc;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.pending { background: #fef3c7; color: #92400e; }
.badge.progress { background: #dbeafe; color: #1e40af; }
.badge.resolved { background: #dcfce7; color: #166534; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-left h1 { font-size: 2.4rem; }
    .hero-desc { margin: 0 auto 28px; }
    .hero-btns { justify-content: center; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-menu { display: none; }
}

@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
    .brand-text { display: none; }
    .hero-left h1 { font-size: 2rem; }
}
