/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

/* Centered Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Headings */
h1, h2, h3 {
    color: #1a2533;
    margin-bottom: 15px;
}

h1 {
    font-size: 2em;
    border-bottom: 2px solid #e1e8ed;
    padding-bottom: 10px;
}

h2 {
    font-size: 1.5em;
    color: #2c3e50;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #007bff;
    outline: none;
}

/* Button Styling */
button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

/* Links */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Message Styling */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f2f2f2;
    font-weight: 600;
}

table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Card Info Box */
.card-info {
    background-color: #e9f7fd;
    border: 1px solid #b3e0f2;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
}

.card-info p {
    margin: 5px 0;
}

/* Navigation List */
nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    margin-bottom: 10px;
}

nav ul li a {
    display: block;
    padding: 10px;
    background-color: #f2f2f2;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #e1e8ed;
    text-decoration: none;
}

/* Responsive Media Queries */

/* For tablets and smaller desktops */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 15px 20px;
    }
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.3em;
    }
    table th, table td {
        padding: 10px;
        font-size: 0.9em;
    }
}

/* For mobile phones */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    .container {
        padding: 10px 15px;
        box-shadow: none;
        border-radius: 0;
    }
    h1 {
        font-size: 1.5em;
    }
    button {
        width: 100%;
        padding: 14px;
    }
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
    }
    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        white-space: normal;
        text-align: left;
    }
    td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        content: attr(data-label);
    }
    /* Add data-label attributes in extrato.php */
}