﻿/* Reset */
body, h1, h2, h3, p, ul {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    height: 120vh;
}

/* Sidebar */
.sidebar {
    width: 200px;
    background: #2C3E50;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

    .sidebar h2 {
        text-align: center;
        margin-bottom: 20px;
    }

    .sidebar ul {
        list-style: none;
        padding: 0;
    }

        .sidebar ul li {
            padding: 10px;
            text-align: center;
        }

            .sidebar ul li a {
                color: white;
                text-decoration: none;
                display: block;
                padding: 10px;
                border-radius: 5px;
                transition: background 0.3s;
            }

                .sidebar ul li a:hover {
                    background: #1A252F;
                }

/* Dropdown Menus */
.dropdown-content {
    display: none;
    background: #34495E;
    padding-left: 15px;
}

    .dropdown-content li a {
        font-size: 14px;
        padding: 8px 15px;
        display: block;
    }

.dropdown-btn {
    cursor: pointer;
    display: block;
    text-align: center;
    padding: 10px;
    color: white;
    border-radius: 5px;
    transition: background 0.3s;
}

    .dropdown-btn:hover {
        background: #1A252F;
    }

.active {
    background: #1A252F;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/*.header {
    background: #2C3E50;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 20px;
}*/
.header {
    background: #2C3E50;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 20px;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.4);
}

/* Content Area */
.content-area {
    padding: 20px;
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.input-box {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

    .input-box:focus {
        border-color: #0056b3;
        outline: none;
    }
.btn {
    background-color: #0056b3;
    color: #fff;
    border: none;
    padding: 14px;
    margin-top: 10px;
    width: 100%;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .btn:hover {
        background-color: #004085;
    }

    .btn:disabled {
        background-color: #aaa;
        cursor: not-allowed;
    }
.row-container {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.row-container2 {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.input-section {
    flex: 1;
    min-width: 50%;
}

.input-section1 {
    flex: 1;
    min-width: 33%;
}
.row-container:nth-child(3) .input-section {
    width: 100%;
}
.row-container1 input-section {
    width: 100%;
}
/* GridView Container */
.rounded_corners {
    width: 100%;
    height: 400px;
    overflow-y: auto; /* Only vertical scrollbar */
    overflow-x: hidden; /* Prevent horizontal scrollbar */
    border: 1px solid #000;
    border-radius: 10px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    background-color: #f8f9fa;
}

/* Table Styling */
.fixed-header-grid {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Prevents table from expanding */
}

    /* Header Row Styling */
    .fixed-header-grid thead tr {
        position: sticky;
        top: 0;
        background-color: #0056b3 !important;
        color: white !important;
        font-weight: bold;
        text-align: left;
        z-index: 2;
    }

    /* Header and Row Cells */
    .fixed-header-grid th,
    .fixed-header-grid td {
        padding: 8px;
        border-bottom: 1px solid #ddd;
        white-space: nowrap; /* Prevents wrapping */
        overflow: hidden;
        text-overflow: ellipsis; /* Shows "..." if text is too long */
    }

        /* Set column width percentages */
        .fixed-header-grid th:nth-child(1),
        .fixed-header-grid td:nth-child(1) {
            width: 5%;
        }
        /* Sl No */
        .fixed-header-grid th:nth-child(2),
        .fixed-header-grid td:nth-child(2) {
            width: 10%;
        }
        /* Booth ID */
        .fixed-header-grid th:nth-child(3),
        .fixed-header-grid td:nth-child(3) {
            width: 15%;
        }
        /* Booth Name */
        .fixed-header-grid th:nth-child(4),
        .fixed-header-grid td:nth-child(4) {
            width: 10%;
        }
        /* AC No */
        .fixed-header-grid th:nth-child(5),
        .fixed-header-grid td:nth-child(5) {
            width: 20%;
        }
        /* AC Name */
        .fixed-header-grid th:nth-child(6),
        .fixed-header-grid td:nth-child(6) {
            width: 10%;
        }
        /* Total */
        .fixed-header-grid th:nth-child(7),
        .fixed-header-grid td:nth-child(7) {
            width: 10%;
        }
        /* Male */
        .fixed-header-grid th:nth-child(8),
        .fixed-header-grid td:nth-child(8) {
            width: 10%;
        }
    /* Female */

    /* Alternating Row Colors */
    .fixed-header-grid tr:nth-child(even) {
        background-color: #f2f2f2;
    }

    /* Hover Effect */
    .fixed-header-grid tr:hover {
        background-color: #ddd;
    }

    /* Body Section for Scrolling */
    .fixed-header-grid tbody {
        display: block;
        overflow-y: auto;
        max-height: 350px;
        width: 100%;
    }

        .fixed-header-grid thead,
        .fixed-header-grid tbody tr {
            display: table;
            width: 99%;
            table-layout: fixed;
        }


