@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

:root {
    --primary: #0e7794;
    --secondary: #5a5a5c;
    --white: #ffffff;
    --black: #000000;
    --bg-light: #f9f9f9;
    --text: #1f1f1f;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--text);
    line-height: 1.6;
    padding-bottom: 3rem;
}

h1, h2, h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

a:hover {
    text-decoration: underline;
}

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

nav {
    margin-top: 0.5rem;
}

nav a {
    color: var(--white);
    font-weight: 600;
    margin: 0 0.75rem;
}

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

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

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="color"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

button {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease-in-out;
}

button:hover {
    background-color: #0c5e77;
}

.error, .success {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    border-left: 5px solid;
}

.error {
    background-color: #ffe5e5;
    color: #a40000;
    border-color: red;
}

.success {
    background-color: #e0f8ee;
    color: #06754b;
    border-color: #06754b;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    overflow-x: auto;
}

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

table th {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
}

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

.dashboard-container {
    text-align: center;
    padding: 2rem 1rem;
}

.dashboard-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--white);
    border-left: 6px solid var(--primary);
    padding: 1.5rem;
    width: 280px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.dashboard-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.dashboard-links a {
    padding: 0.6rem 1rem;
    border: 2px solid var(--primary);
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    color: var(--primary);
}

.dashboard-links a:hover {
    background: var(--primary);
    color: var(--white);
}

/* Responsive Styles */
@media (max-width: 768px) {
    header, main, footer {
        padding: 1rem;
    }

    .dashboard-stats {
        flex-direction: column;
        align-items: center;
    }

    table {
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
