/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2563eb;
    /* Royal Blue */
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    /* Emerald Green */
    --accent-color: #f59e0b;
    /* Amber */
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-color);
    margin: 0;
    padding: 0;
    color: var(--dark-color);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
    overflow: hidden;
}

/* Header */
header {
    background: var(--white);
    color: var(--dark-color);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

header h1 span {
    color: var(--primary-color);
}

header nav ul {
    padding: 0;
    margin: 0;
    display: flex;
    list-style: none;
}

header nav li {
    margin-left: 20px;
}

header nav a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

header nav a:hover {
    color: var(--primary-color);
}

/* Buttons */
.button,
button,
input[type="submit"] {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Forms */
.auth-form {
    max-width: 400px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    /* Fix padding issue */
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Dashboard */
.dashboard-container {
    background: var(--white);
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.status-box {
    background: #e0f2fe;
    padding: 1rem;
    border-left: 5px solid var(--primary-color);
    margin-bottom: 2rem;
    border-radius: 4px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

th {
    background: var(--dark-color);
    color: var(--white);
    padding: 12px;
    text-align: left;
}

td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

tr:hover {
    background-color: #f9fafb;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(31, 41, 55, 0.8), rgba(31, 41, 55, 0.8)), url('https://source.unsplash.com/1600x900/?office,work');
    background-size: cover;
    background-position: center;
    height: 80vh;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero .btn-group {
    display: flex;
    gap: 15px;
}

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

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

/* Status Colors */
.status-approved {
    color: var(--secondary-color);
    font-weight: bold;
}

.status-rejected {
    color: #ef4444;
    font-weight: bold;
}

.status-pending {
    color: var(--accent-color);
    font-weight: bold;
}

/* Responsive */
@media(max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    header nav ul {
        margin-top: 10px;
    }

    .hero h1 {
        font-size: 2rem;
    }
}