/* Base styles for base.html */

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f7f9fb;
    color: #222;
    margin: 0;
    padding: 0;
}

header {
    background-color: #2d3748;
    color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: #63b3ed;
}

/* Logo styling for navbar */
.navbar-brand img {
    height: 32px;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #fff;
    padding: 2px;
    transition: box-shadow 0.2s;
}

.navbar-brand img:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Improved form styles for better alignment */
form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

form .form-group,
form p {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    padding: 0.7em 1em;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1em;
    background: #f7fafc;
    transition: border-color 0.2s;
    margin-bottom: 0.2em;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    border-color: #3182ce;
    outline: none;
    background: #fff;
}

label {
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 0.2em;
}

.card {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: none;
    margin-bottom: 2rem;
}

.card-body {
    border-radius: 12px;
    padding: 2rem;
    background: #f9fafb;
}

.card-title {
    font-size: 1.7em;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.2rem;
}

.btn-primary, button, input[type="submit"] {
    width: 100%;
    padding: 0.7em 0;
    font-size: 1.1em;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: #3182ce;
    color: #fff;
    border: none;
    transition: background 0.2s;
}

.btn-primary:hover, button:hover, input[type="submit"]:hover {
    background: #2b6cb0;
}

footer {
    text-align: center;
    padding: 1rem 0;
    background: #edf2f7;
    color: #4a5568;
    font-size: 0.95rem;
    margin-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

h1, h2, h3 {
    color: #2d3748;
    margin-top: 0;
}

a {
    color: #3182ce;
    text-decoration: underline;
}

a:hover {
    color: #2b6cb0;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    .card, .card-body {
        border-radius: 8px;
        padding: 1rem;
    }
    form {
        gap: 0.8rem;
    }
}
.red-background {
    background: #dc3545;
    background-color: #dc3545;
}

.red-background:hover {
    background-color: #bb2d3b;
}

.green-background {
    background:#198754 ;
    background-color: #198754;
}

.green-background:hover {
    background-color: #157347;
}

.yellow-background {
    background: #ffc107;
    background-attachment: fixed;
}

.yellow-background:hover {
    background-color: #e0a800;
}
