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

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f9f9f9;
    color: #222;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===========================
   Containers & Layout
=========================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.main-content {
    flex: 1;
    padding: 20px 0;
}

/* ===========================
   Header & Footer
=========================== */
.site-header,
.site-footer {
    background: #2980b9;
    color: #fff;
    padding: 15px 20px;
}

.header-container,
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.main-nav ul li a:hover {
    text-decoration: underline;
}

/* ===========================
   Cards
=========================== */
.card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 10px 0;
    text-align: center;
}

.card h3 {
    margin-bottom: 10px;
}

/* ===========================
   Buttons
=========================== */
.btn {
    display: inline-block;
    padding: 8px 15px;
    background: #2980b9;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.btn:hover {
    background: #1f6390;
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-success {
    background: #27ae60;
}

.btn-success:hover {
    background: #1e8449;
}

.btn-warning {
    background: #f39c12;
}

.btn-warning:hover {
    background: #d68910;
}

/* ===========================
   Forms
=========================== */
form {
    margin: 15px 0;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 4px rgba(41, 128, 185, 0.3);
}

/* ===========================
   Tables
=========================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

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

table th {
    background: #f4f4f4;
    font-weight: bold;
}

table tr:nth-child(even) {
    background: #f9f9f9;
}

table tr:hover {
    background: #f1f1f1;
}

/* ===========================
   Alerts & Messages
=========================== */
.alert {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 5px;
    font-weight: 500;
}

.alert-success {
    background: #dff0d8;
    color: #3c763d;
}

.alert-error {
    background: #f2dede;
    color: #a94442;
}

.alert-warning {
    background: #fcf8e3;
    color: #8a6d3b;
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 768px) {

    .header-container,
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }
}