/* Root Variables */
:root {
    --primary-color: rgb(20, 20, 56);
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-family: 'Arial', sans-serif;
    --font-size-base: 16px;
    --transition-speed: 0.3s;
    --border-radius: 8px;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    background-color: var(--light-color);
    color: var(--dark-color);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    padding: 1rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar h1 {
    color: white;
    font-size: 1.5rem;
}

.navbar nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    padding: 5px 10px;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    border-radius: var(--border-radius);
}

.navbar nav a:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('hero-image.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 5rem 1rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero button {
    background: var(--primary-color);
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: background-color var(--transition-speed);
}

.hero button:hover {
    background: var(--dark-color);
}

/* Main Content */
.divmain {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn var(--transition-speed) ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
button {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

button:hover {
    background-color: var(--dark-color);
}

/* Forms */
form .form-group {
    margin-bottom: 1.5rem;
}

form .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    outline: none;
    transition: border-color var(--transition-speed);
}

form .form-control:focus {
    border-color: var(--primary-color);
}

form button {
    display: inline-block;
    width: 100%;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

table th, table td {
    padding: 1rem;
    border: 1px solid var(--secondary-color);
    text-align: left;
}

table th {
    background-color: var(--primary-color);
    color: white;
}

table tr:nth-child(even) {
    background-color: var(--light-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 2rem;
}

.pagination button {
    margin: 0 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .navbar nav {
        margin-top: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}
