/* General Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa; /* Light gray background */
    color: #333;
}

/* Header/Navbar Styles */
.navbar {
    background-color: #343a40 !important; /* Dark background for navbar */
}
.navbar-brand {
    font-weight: bold;
    color: #fff !important;
}
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
}
.navbar-nav .nav-link:hover {
    color: #fff !important;
}

/* Main Content Area */
main {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Card Styles */
.card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}
.card-header {
    background-color: #007bff; /* Primary blue for card headers */
    color: white;
    font-weight: bold;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.card-header.bg-primary { background-color: #007bff !important; }
.card-header.bg-success { background-color: #28a745 !important; }
.card-header.bg-info { background-color: #17a2b8 !important; }
.card-header.bg-warning { background-color: #ffc107 !important; }
.card-header.bg-danger { background-color: #dc3545 !important; }
.card-header.bg-secondary { background-color: #6c757d !important; }

/* Form Styles */
.form-control,
.form-select {
    border-radius: 5px;
}
.input-group-text {
    background-color: #e9ecef;
    border-color: #ced4da;
}

/* Button Styles */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}
.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}
.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
}
.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}
.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
}
.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529; /* Dark text for warning buttons */
}
.btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}
.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}
.btn-info:hover {
    background-color: #138496;
    border-color: #138496;
}
.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}
.btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
}

/* Alerts */
.alert {
    border-radius: 5px;
}

/* Table Styles */
.table th {
    background-color: #f2f2f2;
}

/* Footer Styles */
.footer {
    background-color: #343a40 !important;
    color: rgba(255, 255, 255, 0.75);
    margin-top: auto; /* Push footer to the bottom */
}

/* Specific elements */
.img-fluid.rounded-circle {
    border: 3px solid #007bff;
}

/* Dark/Light mode toggle (placeholder, if implemented later) */
.dark-mode-toggle {
    cursor: pointer;
    color: #fff;
    margin-left: 15px;
}
.dark-mode-toggle:hover {
    color: #ccc;
}

/* Glassmorphism for login/register cards - specific styles for these pages */
.card-glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
}
.card-glassmorphism .form-control,
.card-glassmorphism .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}
.card-glassmorphism .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.card-glassmorphism .form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}
.card-glassmorphism .form-select option {
    background-color: #343a40; /* Dark background for options */
    color: white;
}
.card-glassmorphism .text-center a {
    color: white;
}

/* Adjust login/register card to use common styles but keep glassmorphism */
/* This might require updating the login/register.php files to use .card-glassmorphism */



/* Auth Page Background */
.auth-page-background {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

