* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f6f8;
    color: #1f2937;
}

/* NAVBAR */

.navbar {
    height: 100px;
    padding: 18px 55px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-box {
    width: 70px;
    height: 70px;
    background: #00458f;
    color: white;
    border-radius: 14px;
    font-size: 38px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo strong {
    font-size: 24px;
    color: #003b82;
}

.logo span {
    font-size: 16px;
}

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

.nav-links a {
    color: #1f2937;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

.search-box {
    background: #f0f2f5;
    padding: 13px 24px;
    border-radius: 30px;
    color: #6b7280;
}

/* INDEX */

.hero {
    min-height: calc(100vh - 100px);
    display: grid;
    grid-template-columns: 1fr 560px;
    align-items: center;
    gap: 70px;
    padding: 60px;
    background: linear-gradient(135deg, #eeeeee, #d7d8da);
}

.hero-text h1 {
    font-size: 58px;
    color: #003b82;
    margin-bottom: 30px;
}

.hero-text p {
    font-size: 24px;
    line-height: 1.6;
    max-width: 850px;
    color: #374151;
}

.primary-link {
    display: inline-block;
    margin-top: 30px;
    background: #003b82;
    color: white;
    padding: 20px 42px;
    border-radius: 40px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

.hero-image-card {
    height: 500px;
    background: #f3f4f6;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-carport {
    width: 300px;
    height: 220px;
    position: relative;
}

.hero-roof {
    position: absolute;
    top: 40px;
    left: 20px;
    width: 260px;
    height: 12px;
    background: #003b82;
}

.hero-body {
    position: absolute;
    top: 58px;
    left: 35px;
    width: 230px;
    height: 170px;
    background: #cfd6df;
}

.hero-dashed {
    position: absolute;
    top: 110px;
    left: 40px;
    width: 220px;
    border-top: 4px dashed #003b82;
}

.hero-post {
    position: absolute;
    top: 55px;
    width: 8px;
    height: 180px;
    background: #003b82;
}

.hero-post.left {
    left: 30px;
}

.hero-post.right {
    right: 30px;
}

/* STEPS */

.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    padding: 30px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.step {
    padding: 18px 42px;
    border-radius: 999px;
    background: #d1d5db;
    font-weight: bold;
    color: #4b5563;
}

.step.active {
    background: #003b82;
    color: white;
}

.line {
    width: 110px;
    height: 4px;
    background: #d1d5db;
}

/* CONFIGURATOR */

.config-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    gap: 45px;
    padding: 50px 60px;
}

.form-section h1 {
    font-size: 46px;
    color: #003b82;
    margin-top: 0;
}

.card {
    background: white;
    padding: 32px;
    border-radius: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.card h2 {
    font-size: 28px;
    margin-top: 0;
}

.card label {
    display: block;
    margin-top: 20px;
    margin-bottom: 8px;
    font-weight: bold;
}

.card input[type="text"],
.card input[type="email"],
.card input[type="number"],
.login-card input {
    width: 100%;
    padding: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 18px;
}

.radio-card {
    border: 2px solid #d1d5db;
    border-radius: 16px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 18px;
    cursor: pointer;
}

.radio-card input {
    width: auto;
}

.selected-radio {
    border-color: #003b82;
}

.selected-radio strong {
    margin-left: auto;
    color: #003b82;
    font-size: 24px;
}

.roof-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 25px;
}

.roof-card {
    border: 2px solid #d1d5db;
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
}

.roof-card input {
    display: none;
}

.roof-card.selected {
    border-color: #003b82;
    background: #eef5ff;
}

.roof-sample {
    width: 110px;
    height: 100px;
    border-radius: 8px;
    margin: 0 auto 18px;
}

.roof-sample.light {
    background: #cfe4ff;
}

.roof-sample.dark {
    background: linear-gradient(#4b5563, #111827);
}

.roof-sample.gray {
    background: linear-gradient(#9ca3af, #4b5563);
}

.primary-btn {
    width: 100%;
    padding: 18px;
    background: #003b82;
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

/* PREVIEW */

.preview-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.preview-card {
    text-align: center;
}

.carport-preview {
    height: 300px;
    background: #ececec;
    border-radius: 20px;
    padding: 20px;
}

.price-box {
    background: #003b82;
    color: white;
    padding: 40px;
    border-radius: 24px;
}

.price-box strong {
    font-size: 52px;
    display: block;
    margin: 20px 0;
}

/* LOGIN */

.login-page {
    min-height: calc(100vh - 100px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.login-card {
    width: 450px;
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.login-card h1 {
    color: #003b82;
    font-size: 36px;
    margin-top: 0;
}

.login-card p {
    color: #6b7280;
}

.login-card label {
    display: block;
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: bold;
}

.login-card button {
    width: 100%;
    margin-top: 28px;
    padding: 16px;
    background: #003b82;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
}

/* ADMIN */

.admin-page {
    padding: 45px 60px;
}

.admin-title h1 {
    font-size: 44px;
    color: #003b82;
    margin: 0;
}

.admin-title p {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 28px;
}

.admin-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.admin-table th {
    background: #003b82;
    color: white;
    padding: 14px;
    text-align: left;
    white-space: nowrap;
}

.admin-table td {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.status-badge {
    background: #e0ecff;
    color: #003b82;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: bold;
}

.status-form {
    display: flex;
    gap: 8px;
}

.status-form select {
    padding: 8px;
    border-radius: 8px;
}

.status-form button,
.table-button,
.secondary-btn {
    background: #003b82;
    color: white;
    border: none;
    padding: 9px 13px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

/* GENERIC */

.container {
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 30px;
}

.page-title {
    font-size: 42px;
    color: #003b82;
}

.table-card {
    background: white;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    overflow-x: auto;
}

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

.table-card th {
    background: #003b82;
    color: white;
    padding: 14px;
}

.table-card td {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.price-summary {
    background: #003b82;
    color: white;
    padding: 25px;
    border-radius: 18px;
    margin-top: 25px;
    font-size: 24px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .config-page,
    .hero {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .search-box {
        display: none;
    }
}