/* Reset and layout setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%; /* Needed to force footer to bottom */
}

body {
    display: flex;
    flex-direction: column;
    font-family: sans-serif;
}

/* Header */
header {
    background-color: #1a252f;
    color: white;
    padding: 15px 30px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Styled rounded button */
.login-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px; /* Makes it rounded */
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.login-btn:hover {
    background-color: #2980b9;
}

/* Main Area */
main {
    flex: 1; /* This takes up all available space, pushing footer down */
    background-color: white;
    max-width: 1200px;
    margin: 20px auto;
    width: 95%;
}

/* Professional Footer */
footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    padding: 40px 20px;
    text-align: center;
}

.footer-sections {
    display: flex;
    justify-content: space-around;
    max-width: 800px;
    margin: 0 auto;
}

footer a {
    color: #ecf0f1;
    text-decoration: none;
    display: block;
    margin-top: 5px;
}

/* Styling for the table to make it pop */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* Adds a nice subtle shadow */
}

thead {
    background-color: #34495e;
    color: #ffffff;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #dddddd;
}

/* Zebra striping for readability */
tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

/* Hover effect on rows */
tbody tr:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

/* Status Badge Styling */
.status-badge {
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
}

.status-active {
    background-color: #d4edda; /* Light green background */
    color: #155724;            /* Dark green text */
}

.status-inactive {
    background-color: #f8d7da; /* Light red background */
    color: #721c24;            /* Dark red text */
}

.nav-logo {
    height: 50px; /* Adjust this to make your logo bigger or smaller */
    width: auto;  /* Maintains the aspect ratio */
    display: block;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center; /* This aligns the logo and text vertically */
    gap: 15px;           /* Adds space between the logo and the text */
}

.nav-logo {
    height: 50px;
    width: auto;
}

.nav-title {
    font-size: 1.5rem;   /* Adjust the size to your liking */
    color: white;
    font-weight: 600;
}

.back-btn {
    text-decoration: none;
    color: #ecf0f1;
    border: 2px solid #3498db;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: #3498db;
    color: white;
}

/* Login Page Specific Layout */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f7f6;
    margin: 0;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    box-sizing: border-box;
}

.login-container .login-btn {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}

.login-container .login-btn:hover {
    background-color: #2980b9;
}

.corner-footer {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    text-align: right;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000; /* Keeps it on top of other elements */
}

.corner-footer a {
    color: #3498db;
    text-decoration: none;
}

.corner-footer a:hover {
    text-decoration: underline;
}

