

body {
    font-family: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #dadada;
    color: white;
    padding: 0 20px 10px;
    z-index: 1000;
    border-bottom: 2px #e60000 ridge;
    width:100wh;
}

.header .menu {
    text-align: center;
    line-height: 60px;
    margin: 5px;
    padding: 3px;

}

.header .menu a {
    color: #34383c;
    text-decoration: none;
    margin-left: 20px;
    font-size:12pt ;
    min-width: 180px;

}

.header .menu a:hover {
    text-decoration: none;
    background-color:#00C7FE ;
    padding: 20px;
    border-radius: 10px;
}

.header .menu-toggle {
    display: none;
    float: right;
    margin-top: 15px;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #f0f0f0;
    color: #0000f0;
    text-align: center;
    line-height: 50px;
    z-index: 1000;
}

/* Content */
.content {
    padding: 70px 20px 60px 20px;
    background-color: white;
    min-height: 100vh;
    font-family: 'Microsoft Sans Serif';
}

/* Responsive */
@media screen and (max-width: 768px) {
    .header .menu {
        float: none;
        display: none;
        width: 100%;
        text-align: center;
        background-color: #4CAF50;
        text-decoration: none;
    }

    .header .menu a {
        display: block;
        margin: 10px 0;
    }

    .header .menu-toggle {
        display: block;
    }
}




.stats-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-box {
    background: #add8e6;
    border-radius: 12px;
    padding: 30px 40px;
    width: 220px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    color: #003366;
    user-select: none;
    transition: transform 0.3s ease;
}


#loading {
    text-align: center;
    padding: 100px;
    font-size: 20px;
}


#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
}


.stat-box:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2em;
    font-weight: 600;
}



/* Login box */
.login-container {
    margin: auto auto;
    background: white;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px; /* max width */
    box-sizing: border-box;


}

/* Inputs and buttons */
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 10px;
    background: #004c99;
    border: none;
    color: white;
    font-size: 1.1em;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #003366;
}

.errormsg {
    color: red;
    margin-bottom: 15px;
    font-weight: 600;
    padding: 15px;
}



/* Action buttons */
.mybtn {
    padding: 6px 12px;
    margin: 0 2px;
    font-size: 0.9em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    max-width: 300px !important;
}
.btn-edit {
    background-color: #0073e6;
}
.btn-edit:hover {
    background-color: #005bb5;
}
.btn-delete {
    background-color: #e60000;
}
.btn-delete:hover {
    background-color: #b50000;
}
 



/* Page Title (H3) Styling */
.page-title {
    font-size: 1.75rem;         /* slightly larger than default h3 */
    font-weight: 600;           /* semi-bold for emphasis */
    color: #2c3e50;             /* dark slate color */
    margin-bottom: 20px;        /* space below title */
    text-transform: capitalize; /* capitalizes first letter of each word */
    letter-spacing: 0.5px;      /* a little spacing for clarity */
    position: relative;         /* for decorative underline */
}

/* Optional underline accent */
.page-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 60px;
    height: 3px;
    background-color: #007bff;  /* Bootstrap blue accent */
    border-radius: 2px;
}


/* ===== Full Contact Form View Table ===== */
#contactFormview {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Header styling */
#contactFormview thead th {
    background-color: #add8e6;
    color: #fff;
    text-align: center;
    font-size: 16px;
    padding: 12px;
}

/* Table rows and cells */
#contactFormview td {
    padding: 10px 15px;
    border: 1px solid #ccc;
    vertical-align: top;
}

/* Left column labels */
#contactFormview td:first-child {
    background-color: #f8f9fa;
    font-weight: 600;
    width: 30%;
}

/* Span values */
#contactFormview td span {
    color: #212529;
}

/* Hover effect */
#contactFormview tbody tr:hover {
    background-color: #f1f9ff;
    transition: 0.2s ease-in-out;
}

/* Buttons */
#contactFormview td button {
    margin-right: 5px;
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
    #contactFormview,
    #contactFormview thead,
    #contactFormview tbody,
    #contactFormview th,
    #contactFormview td,
    #contactFormview tr {
        display: block;
        width: 100%;
    }

    #contactFormview thead {
        display: none;
    }

    #contactFormview tr {
        margin-bottom: 10px;
        border: 1px solid #ddd;
        border-radius: 6px;
        background-color: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }

    #contactFormview td {
        border: none;
        padding: 10px 12px;
        position: relative;
    }

    #contactFormview td:first-child {
        background-color: transparent;
        font-weight: 700;
        color: #007bff;
    }

    #contactFormview td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6c757d;
        display: block;
        margin-bottom: 3px;
    }
}



.modal {
    z-index: 2000; /* Force on top */
}
