/* General Reset */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f9;
}

header {
    background: #225b94;
    color: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.5em;
}

header p {
    margin: 0;
    font-size: 0.9em;
}

header form {
    margin: 0;
}

main {
    padding: 20px;
}

/* Buttons */
button {
    background: #225b94;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
    transition: background 0.3s ease;
}

button:hover {
    background: #7222a8;
}

/* Links */
a {
    color: #225b94;
    text-decoration: none;
    margin-right: 10px;
}

a:hover {
    text-decoration: underline;
}

/* Forms */
form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input, form textarea, form select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

table th {
    background-color: #225b94;
    color: white;
}

/* Activity Log */
.activity-log {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header h1 {
        margin-bottom: 10px;
    }

    table, .activity-log {
        font-size: 0.9em;
    }

    button {
        font-size: 0.9em;
        padding: 8px 12px;
    }

    form input, form textarea, form select {
        font-size: 0.9em;
    }
}


/* General styling for the form */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-group textarea {
    height: 100px;
    resize: none;
}

.form-group input[type="number"],
.form-group input[type="date"] {
    width: auto;
    max-width: 200px;
}

h3 {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    display: inline-block;
}

.delete-btn:hover {
    background-color: #c82333;
}

.cancel-btn {
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    display: inline-block;
}

.cancel-btn:hover {
    background-color: #c82333;
}

    h1 {
        text-align: left;
        margin-top: 20px;
    }
    .container {
        width: 80%;
        margin: 0 auto;
    }
    table {
        width: 100%;
        margin: 20px auto;
        border-collapse: collapse;
        text-align: center;
    }
    table th, table td {
        border: 1px solid #ccc;
        padding: 10px;
    }
    table th {
        background-color: #007bff;
        color: white;
    }
    table tr:nth-child(even) {
        background-color: #f2f2f2;
    }
#form-section {
    display: none;
    text-align: left;
    max-width: 500px;
    margin: 50px auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#form-section h2 {
    font-size: 24px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

.form-group input {
    width: calc(100% - 10px);
    padding: 10px;
    font-size: 14px;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #007bff;
}

.form-actions {
    text-align: center;
    margin-top: 20px;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(0, 123, 255, 0.3);
    transition: background-color 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-left: 10px;
    box-shadow: 0 3px 6px rgba(108, 117, 125, 0.3);
    transition: background-color 0.3s, transform 0.2s;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

button[type="button"] {
    margin-left: 5px;
    padding: 8px 12px;
    font-size: 14px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button[type="button"]:hover {
    background-color: #0056b3;
}
.delete-button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(220, 53, 69, 0.3);
    transition: background-color 0.3s, transform 0.2s;
}

.delete-button:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

/* Smooth Button Transitions */
.btn-smooth-transition {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-smooth-transition:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-smooth-transition:active {
    transform: scale(1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

  /* Color Palette */
:root {
    --primary: #1f8efa;
    --primary-hover: #1565c0;
    --card-bg: #e4e4e4;
    --btn-radius: 8px;
}

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

/* Dashboard Cards */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--btn-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}
a {
  text-decoration: none !important;
}
.card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 10px;
}
.card p {
    font-size: 14px;
    margin-bottom: 15px;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 115, 230, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 10px 15px;
    border-radius: var(--btn-radius);
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn:hover {
    background: var(--primary-hover);
}

.btn-home {
    display: inline-block;
    background-color: #c60000;
    color: white;
    padding: 10px 15px;
    border-radius: var(--btn-radius);
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-home:hover {
        background-color: #930000;
        border-color: #4a4f54;
}

/* Updates Section */
.updates-section {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--btn-radius);
    border: 1px solid var(--border-color);
}
.updates-section h2 {
    color: var(--primary);
    margin-bottom: 10px;
}
    /* Logout button */
.logout-btn {
    background-color: #c60000;
    color: white;
    border-color: #6c757d;
    position: absolute;
    top: 10px;
    right: 20px;
    padding: 8px 15px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.logout-btn:hover {
    background-color: #930000;
    border-color: #4a4f54;}

/* Button Variants */
.btn-primary {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}

/* dangers button - bad funcs */
.btn-danger {
    background-color: #c60000;
    color: white;
    border-color: #6c757d;
}

.btn-danger:hover {
    background-color: #930000;
    border-color: #4a4f54;
}
