/* ===== GLOBAL STYLES ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f5f7fa;
    color: #333;
    padding-bottom: 50px;
    line-height: 1.6;
}

h2 {
    text-align: center;
    margin: 20px 0;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
}

.text{
    color: rgb(0, 0, 0);
    font-size: 24px;
}

.summary{
    color: #000;
}

/* ===== FORM STYLES ===== */
form {
    text-align: center;
    margin: 30px auto;
    padding: 25px;
    background: linear-gradient(145deg, #ffffff, #f0f4f8);
    max-width: 1000px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

input[type="submit"],
select[name="reg_no"],
input[type="date"] {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    min-width: 220px;
    font-size: 15px;
    transition: 0.3s;
}

input:focus,
select:focus {
    border-color: #2980b9;
    outline: none;
    box-shadow: 0 0 6px rgba(41, 128, 185, 0.3);
}

select#reg_no {
    padding: 10px 14px;
    border-radius: 8px;
    border: 2px solid #007bff;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

select#reg_no:hover {
    border-color: #0056b3;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

select#reg_no:focus {
    outline: none;
    border-color: #33ccff;
    box-shadow: 0 0 8px rgba(51, 204, 255, 0.8);
}


/* 🔵 SEARCH BUTTON STYLE */
button[name="search"] {
    background: linear-gradient(45deg, #0066ff, #33ccff);
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

button[name="search"]:hover {
    background: linear-gradient(45deg, #0040aa, #0099cc);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.export-btn{
    background:#0d6efd !important;
    color:#fff !important;
    padding:8px 18px;
    border:none;
    border-radius:4px;
    cursor:pointer;
    font-size:14px;
}
.export-btn:hover{
    background:#084298 !important;
}

/* 🟢 EXPORT BUTTON STYLE (DataTables + custom button) */
button.btn.green,
.dt-button {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 15px ;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

button.btn.green:hover,
.dt-button:hover {
    background: linear-gradient(45deg, #1e8449, #239b56);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* ===== SEARCH BAR ===== */
#searchInput {
    margin: 20px auto;
    padding: 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    width: 60%;
    display: block;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

#searchInput:focus {
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
}

/* ===== TABLE STYLES ===== */
table {
    border-collapse: collapse;
    width: 95%;
    margin: 30px auto;
    background: white;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

table th,
table td {
    border: 1px solid #e1e1e1;
    padding: 14px 12px;
    text-align: center;
    font-size: 15px;
}

table th {
    background: linear-gradient(135deg, #2980b9, #3498db);
    color: white;
    font-weight: 600;
    font-size: 16px;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #ecf9ff;
    transition: background-color 0.3s ease;
}

/* ===== PAGINATION (DataTables) ===== */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 8px 14px;
    margin: 3px;
    border-radius: 6px;
    background: #3498db;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #1abc9c;
}

/* DataTables search bar */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
}

/* ===== MEDIA QUERIES ===== */
@media screen and (max-width: 768px) {
    form {
        padding: 15px;
    }

    input[type="text"],
    input[type="date"],
    select {
        width: 90%;
    }

    #searchInput {
        width: 90%;
    }

    table {
        font-size: 14px;
    }
}