/* Reset & General Layout */
body {
    font-family: Arial, sans-serif;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction:column;
}

/* Header */
header {
    background: #007bff;
    color: white;
    padding: 15px 10px;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header img.logo {
    height: 40px;
    margin-right: 10px;
}

header h1 {
    font-size: 1.5em;
    margin: 0;
    flex: 1;
    text-align: left;
}

header nav {
    flex: 1;
    text-align: right;
}

header nav a {
    color: white;
    margin: 0 8px;
    text-decoration: none;
    font-weight: bold;
}

header nav a:hover {
    text-decoration: underline;
}

/* Main Content */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 30px 30px;
    flex: 1;                  /* ✅ this forces main to fill the space */
    padding: 100px 30px 30px; /* top padding ensures header doesn’t overlap */
    min-height: calc(100vh - 150px);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}
th, td {
    padding: 10px;
    border: 1px solid #ddd;
}
th {
    background: #007bff;
    color: white;
}
tr:nth-child(even) {
    background: #f2f2f2;
}

/* Forms */
form {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
input, select, textarea, button {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}
button {
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}
button:hover {
    background: #0056b3;
}


footer {
    background: #343a40;
    color: white;
    padding: 10px;
    text-align: center;
    margin-top: auto;   /* sticks to bottom */
   
}

/* ✅ Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    header h1 {
        font-size: 1.2em;
        margin-bottom: 5px;
    }
    header img.logo {
        height: 30px;
    }
    header nav {
        text-align: left;
        width: 100%;
    }
    header nav a {
        display: block;
        margin: 5px 0;
    }
    main {
        padding-top: 120px; /* extra spacing on mobile */
    }
}
/* ✅ Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}
.hamburger span {
    height: 3px;
    width: 25px;
    background: white;
    margin: 4px 0;
    border-radius: 2px;
}
header nav {
    transition: max-height 0.3s ease;
    padding-right:15px;
}

/* ✅ Mobile Adjustments */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    header nav {
        max-height: 0;
        overflow: hidden;
        width: 100%;
        background: #007bff;
        flex-direction: column;
    }
    header nav.show {
        max-height: 300px; /* expands when open */
    }
    header nav a {
        display: block;
        padding: 10px;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
}

/* ✅ LOGIN PAGE STYLING */
body.login-page {
    background: #007bff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    flex-direction: column;
    font-family: Arial, sans-serif;
}


/* Login Box */
.login-container {
    background: #fff;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 320px;
    max-width: 90%;
    text-align: center;
}

.login-container h2 {
    margin-bottom: 20px;
    font-size: 1.4em;
}

/* Inputs */
.login-container input {
    width: 90% !important;
    padding: 12px;
    margin: 10px auto;
    display: block;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

/* Button */
.login-container button {
    width: 95% !important;
    background: #007bff;
    color: #fff;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1em;
    transition: background 0.3s ease;
}

.login-container button:hover {
    background: #0056b3;
}

/* Alert Box */
.alert {
    background: #ffdddd;
    padding: 10px;
    margin-bottom: 15px;
    color: #b30000;
    border: 1px solid #b30000;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ✅ Responsive Tweaks */
@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 20px;
    }
    .login-logo {
        max-width: 100px;
    }
    .login-container h2 {
        font-size: 1.2em;
    }
}

/* ✅ Circular Logo with Animation */
.login-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;       /* Makes it a circle */
    object-fit: cover;        /* Ensures image is not stretched */
    border: 3px solid #007bff;
    padding: 5px;
    animation: pulse 2s infinite ease-in-out; /* Animation */
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: transform 0.3s ease;
}

/* Hover Effect */
.login-logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}

/* ✅ Keyframes for subtle pulse animation */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(0,123,255,0.3); }
    50% { transform: scale(1.05); box-shadow: 0 6px 25px rgba(0,123,255,0.5); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0,123,255,0.3); }
}

/* ✅ Mobile Adjustments */
@media (max-width: 480px) {
    .login-logo {
        width: 90px;
        height: 90px;
    }
}
