/* ====== RESET & BASE ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f3f4f6; /* gray-100 */
    color: #1f2937; /* gray-800 */
}

a {
    text-decoration: none;
}

/* ====== NAVBAR ====== */
.navbar {
    background-color: #1e3a8a; /* blue-900 */
    color: #ffffff;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h1 {
    font-size: 20px;
    font-weight: bold;
}

.nav-links a {
    color: #ffffff;
    margin-left: 16px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: 0.3s ease;
}

.nav-links a:hover {
    color: #fde047; /* yellow-300 */
}

.nav-links .btn-login {
    background-color: #facc15; /* yellow-400 */
    color: #1e3a8a;
}

.nav-links .btn-login:hover {
    background-color: #fde047;
}

.nav-links .btn-register {
    border: 1px solid #ffffff;
}

.nav-links .btn-register:hover {
    background-color: #ffffff;
    color: #1e3a8a;
}

/* ====== HERO SECTION ====== */
.hero {
    background: linear-gradient(to right, #1e40af, #2563eb); /* blue-800 to blue-600 */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.hero p {
    font-size: 18px;
}

/* ====== SECTION CONTAINER & CARDS ====== */
.section-container {
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
   /*== grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));===*//
    gap: 20px;
    padding: 0 20px;
}

.card {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.card h3 {
    color: #1e40af; /* blue-800 */
    margin-bottom: 10px;
    font-size: 20px;
}

.card p, .card span {
    font-size: 14px;
    margin-bottom: 8px;
    color: #1f2937; /* gray-800 */
}

/* ====== FORMS ====== */
form {
    max-width: 400px;
    margin: 40px auto;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

form input,
form textarea,
form button,
form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
}

form input,
form textarea,
form select {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-sizing: border-box;
}

form button {
    background-color: #1e3a8a;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #1e40af;
}

/* ====== TABLE (ADMIN) ====== */
table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    border: 1px solid #d1d5db;
    padding: 10px;
    text-align: left;
}

table th {
    background-color: #1e3a8a;
    color: #ffffff;
}

/* ====== FOOTER ====== */
footer {
    background-color: #1e3a8a;
    color: #ffffff;
    text-align: center;
    padding: 14px;
    margin-top: 60px;
    font-size: 14px;
}

/* ====== PRINT (DAR) ====== */
@media print {
    body {
        background: #ffffff;
    }

    .navbar, footer {
        display: none;
    }
}

/* ====== DASHBOARD HEADER ====== */
.dashboard-header {
    max-width: 1000px;
    margin: 30px auto;
    background-color: #ffffff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-header h2,
.dashboard-header p {
    margin: 0;
}

.dashboard-header .profile-info {
    display: flex;
    flex-direction: column;
}

.profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #1e40af;
}

/* ====== BUTTON STYLE ====== */
.btn {
    display: inline-block;
    padding: 8px 20px;
    margin: 5px 0;
    background-color: #1e3a8a;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: #1e40af;
    transform: scale(1.05);
}

.btn-logout {
    background-color: #dc2626;
}

.btn-logout:hover {
    background-color: #b91c1c;
}

.btn-submit {
    background-color: #059669;
}

.btn-submit:hover {
    background-color: #047857;
}

/* ====== LOGIN FORM ICONS ====== */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group i {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #1e3a8a;
    font-size: 16px;
}

.input-group input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-sizing: border-box;
}

.input-group input:focus {
    border-color: #1e40af;
    outline: none;
}

/* ====== BANNER ====== */
.banner {
    background-color: #2563eb;
    color: #ffffff;
    padding: 40px 20px;
    border-radius: 8px;
    margin: 40px 20px 20px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.banner-image img {
    width: 250px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.banner-text {
    max-width: 500px;
    text-align: left;
}

.banner-text h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.banner-text p {
    font-size: 16px;
    margin-bottom: 20px;
}

.banner-text .btn {
    background-color: #facc15;
    color: #1e3a8a;
}

.banner-text .btn:hover {
    background-color: #fde047;
}


/* ====== MOBILE RESPONSIVENESS ====== */
@media screen and (max-width: 1024px) {
    .section-container {
     
        padding: 0 20px;
    }

    .card {
        padding: 20px;
    }
}

@media screen and (max-width: 768px) {
    .section-container {
     
        padding: 0 15px;
        gap: 15px;
    }

    .card {
        padding: 18px;
    }

    .card h3 {
        font-size: 18px;
    }

    .card p, .card span {
        font-size: 15px;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .banner-text {
        text-align: center;
    }

    .banner-text h2 {
        font-size: 24px;
    }

    .banner-text p {
        font-size: 16px;
    }

    .banner-image img {
        width: 220px;
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 480px) {
    .card {
        padding: 15px;
    }

    .card h3 {
        font-size: 16px;
    }

    .card p, .card span {
        font-size: 14px;
    }

    .banner-text h2 {
        font-size: 20px;
    }

    .banner-text p {
        font-size: 14px;
    }

    .banner-image img {
        width: 180px;
    }

    form {
        padding: 20px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .profile-pic {
        width: 80px;
        height: 80px;
    }

    .btn {
        font-size: 16px;
        padding: 10px 25px;
    }
}
