@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary-color: #023540;
    --secondary-color: #035761;
    --bg-color: #E3EFF0;
    --text-color: #012A33;
    --danger-color: #011F28;
    --font-family: 'Poppins', sans-serif;
    --border-radius: 6px;
    --transition-speed: 200ms ease-in-out;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    text-align: center;
}

header h1 {
    font-size: 1.8rem;
}

header p {
    font-size: 1rem;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

.button .fas{
    font-size: 1rem;
}

.fas{
    margin-right: 0.2rem;
    font-size: 1.4rem;
}

.btn-primary{
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.btn-primary:hover{
    background-color: var(--secondary-color);
}

.btn-secondary{
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.btn-secondary:hover{
    background-color: var(--primary-color);
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.button {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color var(--transition-speed);
    text-align: center;
    display: inline-block;
    min-width: 120px;
}

.button-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background-color: transparent;
}

.button-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.button-secondary {
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    background-color: transparent;
}

.button-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.button-danger {
    color: var(--danger-color);
    border: 2px solid var(--danger-color);
    background-color: transparent;
}

.button-danger:hover {
    background-color: var(--danger-color);
    color: white;
}

.grid-container {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    margin-top: 2rem;
}

.block {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

.block h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #023540;
}

.block p {
    margin-bottom: 1rem;
    color: #2C5A77;
}

.block ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #2C5A77;
}

.block ul li {
    margin-bottom: 0.5rem;
}

.disabled{
    opacity: 0.5;
    pointer-events: none;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: #f2f5f7;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 1.2rem;
    margin-bottom: 2rem;
}

.profile-section img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.profile-section div {
    flex-grow: 1;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    border: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

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

th {
    background-color: #023540;
    color: #ffffff;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f6f6f6;
}

tr:hover {
    background-color: #e3eff0;
    cursor: pointer;
}

footer {
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

ul li {
    margin: 1rem 0;
}

ul li::marker {
    color: var(--secondary-color);
}

.login-block {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    justify-self: center;
}

.login-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #333;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 4px var(--primary-color);
}

.custom-button {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.custom-button:hover {
    background-color: var(--secondary-color);
}

.message {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #333;
    text-align: center;
}

@media (min-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr 1fr;
    }

    .profile-section {
        flex-direction: row;
        padding: 1.5rem;
    }

    .button {
        min-width: 150px;
    }
}

@media (max-width: 576px) {
    header h1 {
        font-size: 1.5rem;
    }

    header p {
        font-size: 0.9rem;
    }

    .button {
        width: 100%;
        min-width: unset;
    }

    .profile-section {
        flex-direction: column;
        align-items: center;
    }

    table {
        font-size: 12px;
    }

    .login-block {
        padding: 1.5rem;
    }
}



/* Base styling for the custom checkbox */
input[type="checkbox"].book-checkbox {
    -webkit-appearance: none;   /* Removes default styling in WebKit browsers */
    -moz-appearance: none;      /* Removes default styling in Firefox */
    appearance: none;           /* Removes default styling in modern browsers */
    width: 24px;                /* Increased width */
    height: 24px;               /* Increased height */
    border: 2px solid var(--primary-color); /* Using primary color for the border */
    border-radius: var(--border-radius);   /* Rounded corners */
    background-color: var(--bg-color);    /* Light background */
    transition: background-color var(--transition-speed), border-color var(--transition-speed); /* Smooth transition */
    cursor: pointer;           /* Pointer cursor on hover */
    display: inline-block;
    position: relative;
}

/* Checked state */
input[type="checkbox"].book-checkbox:checked {
    background-color: var(--primary-color); /* Primary color when checked */
    border-color: var(--primary-color);     /* Matching border color */
}

/* Custom checkmark icon when checked */
input[type="checkbox"].book-checkbox:checked::after {
    content: "✔";                   /* Unicode checkmark */
    position: absolute;
    top: 0;                          /* Align checkmark */
    left: 4px;                       /* Center the checkmark */
    font-size: 16px;                 /* Font size for the checkmark */
    color: white;                    /* White checkmark */
    font-family: var(--font-family);  /* Use Poppins font */
}

/* Hover effect */
input[type="checkbox"].book-checkbox:hover {
    border-color: var(--secondary-color); /* Secondary color on hover */
}

/* Focus effect (important for accessibility) */
input[type="checkbox"].book-checkbox:focus {
    outline: none;                                 /* Remove default focus outline */
    box-shadow: 0 0 5px rgba(2, 53, 64, 0.5); /* Soft focus glow in primary color */
}