﻿/* =====================
   GLOBAL RESET
===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

html, body {
    height: 100%;
}

body {
    background: #eef4fb;
    color: #0b2545;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* ASP.NET form wrapper */
form {
    flex: 1;
}

/* =====================
   HEADER
===================== */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

    .logo i {
        color: #1e5fa3;
        margin-right: 8px;
    }

/* =====================
   HERO SECTION
===================== */
.hero {
    height: 260px;
    background: linear-gradient(90deg, #0b2e59, #1e5fa3);
    position: relative;
}

.hero-overlay {
    position: absolute;
    left: 60px;
    top: 70px;
    color: #ffffff;
}

/* =====================
   CARDS SECTION
===================== */
.cards {
    display: flex;
    gap: 25px;
    padding: 0 40px;
    margin-top: 20px;
}

/* Common card style */
.card {
    flex: 1;
    padding: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0,0,0,0.10);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Default backgrounds */
.card-rreis {
    background-color: #FFE5CC;
}

.card-hostel {
    background-color: #FFEDCC;
}

.card-home {
    background-color: #FFE1CC;
}

/* Hover backgrounds */
.card-rreis:hover {
    background-color: #FFD1A3;
}

.card-hostel:hover {
    background-color: #FFD9A3;
}

.card-home:hover {
    background-color: #FFC9A3;
}

/* Hover animation */
.card:hover {
    transform: translateY(-5px);
}

/* Icon */
.card i {
    font-size: 36px;
    color: #cc6600;
    transition: color 0.3s ease;
}

.card:hover i {
    color: #994c00;
}

/* Text & link */
.card span {
    font-size: 18px;
    font-weight: 600;
}

.stat-link {
    display: block;
    font-size: 34px;
    font-weight: 800;
    color: #0b2545;
    text-decoration: underline;
    cursor: pointer;
}

    .stat-link:hover {
        color: #0d4fa3;
        text-decoration: underline;
    }


/* =====================
   PEEO SECTION (FIXED)
===================== */
.peeo-section {
    margin: 30px auto;
    padding: 30px 40px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    font-size: 18px;
    max-width: 1600px;
    width: calc(100% - 80px);
}

    .peeo-section h2 {
        font-size: 22px;
        font-weight: 600;
        color: #0d4fa3;
        text-align: center;
        margin-bottom: 20px;
    }

.peeo-table {
    width: 100%;
    border-collapse: collapse;
}

    .peeo-table td {
        width: 100%;
        padding: 16px 20px;
        vertical-align: middle;
    }

    /* Column widths FIXED */
    .peeo-table .td1 {
        width: 45%;
        text-align: left;
        white-space: nowrap;
    }

    .peeo-table .td2 {
        width: 25%;
        text-align: center;
    }

    .peeo-table .td3 {
        width: 30%;
        text-align: left;
    }

    /* Radio buttons */
    .peeo-table input[type="radio"] {
        transform: scale(1.3);
        margin-right: 6px;
    }

/* Dropdown */
.peeo-select {
    width: 100%;
    max-width: 320px;
    padding: 10px 14px;
    font-size: 18px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Buttons FIX */
.peeo-button {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-btn {
    height: 46px;
    min-width: 120px;
    padding: 0 22px;
    font-size: 18px;
    color: #ffffff;
    background-color: #0d4fa3;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

    .search-btn:hover {
        background-color: #083c7a;
    }

/* No records */
.no-records {
    display: block;
    text-align: center;
    color: red;
    font-size: 18px;
    margin-top: 10px;
}

/* =====================
   TABLES
===================== */
.table-section {
    padding: 0 40px 40px;
    width:100%;
}

table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #dddddd;
    text-align: center;
}

/* Report table */
.rpt-table thead th {
    background-color: #ff8c33;
    color: #000;
    text-align: left;
}

.rpt-table tbody td {
    text-align: left;
}

.rpt-table tbody tr:nth-child(odd) {
    background-color: #ffe5cc;
}

.rpt-table tbody tr:nth-child(even) {
    background-color: #ffdab3;
}

.rpt-table tbody tr:hover {
    background-color: #ffc299;
}

/* =====================
   FOOTER (FIXED)
===================== */
.footer {
    background-color: #FFEDCC;
    background: #FFEDCC;
    color: #FFEDCC;
    text-align: center;
    min-height: 48px;
    font-size: 15px;
    width: 100%;
}


/* =====================
   UTILITIES
===================== */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.center-table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
}

    .center-table td,
    .center-table th {
        border: 0;
        padding: 12px;
    }

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {

    .cards {
        flex-direction: column;
        padding: 0 20px;
    }

    .peeo-table,
    .peeo-table tr,
    .peeo-table td {
        display: block;
        width: 100%;
    }

    .peeo-select,
    .search-btn {
        width: 100%;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 200px;
    }
}
