/************
 Viganium Enhanced Styles
************/
:root {
    --primary: #2d3e50;
    --primary-dark: #1a2533;
    --accent: #4fc3f7;
    --danger: #e53935;
    --success: #43a047;
    --background: #f7f9fb;
    --card: #fff;
    --border: #e0e0e0;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.07);
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--background);
    margin: 0;
    color: #222;
    min-height: 100vh;
}

header {
    background: var(--primary);
    color: #fff;
    padding: 1.5rem 0 1rem 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: background 0.2s;
}
nav a:hover, nav a.active {
    background: var(--accent);
    color: var(--primary);
}

footer {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
}

main {
    max-width: 900px;
    margin: 2rem auto 4rem auto;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

@media (max-width: 600px) {
    main {
        padding: 1rem;
        margin: 1rem 0 5rem 0;
    }
    nav {
        flex-direction: column;
        gap: 0.5rem;
    }
}

h1, h2, h3 {
    font-weight: 600;
    color: var(--primary-dark);
}

input, select, textarea, button {
    font-size: 1rem;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--accent);
    border-color: var(--accent);
}

button, .btn {
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: var(--radius);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    margin: 0.5rem 0.25rem;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
button:hover, .btn:hover {
    background: var(--primary-dark);
}
.btn-primary {
    background: var(--accent);
    color: var(--primary);
}
.btn-primary:hover {
    background: #039be5;
    color: #fff;
}
.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover {
    background: #b71c1c;
}
.btn-success {
    background: var(--success);
    color: #fff;
}
.btn-success:hover {
    background: #2e7031;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.table th, .table td {
    border: 1px solid var(--border);
    padding: 0.75rem;
    text-align: left;
}
.table th {
    background: #f0f4f8;
    color: var(--primary-dark);
}
.table tr:nth-child(even) {
    background: #f9fbfd;
}
.table tr:hover {
    background: #e3f2fd;
}

.alert {
    padding: 1rem;
    background: #ffe0e0;
    color: var(--danger);
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #ffcdd2;
}
.success {
    padding: 1rem;
    background: #e0ffe0;
    color: var(--success);
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #b2dfdb;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(44,62,80,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
}
.modal button {
    margin: 1rem 0.5rem 0 0.5rem;
}

/* Avatar/Initials */
.avatar {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: bold;
    text-align: center;
    line-height: 36px;
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

/* Utility */
.flex {
    display: flex;
    align-items: center;
}
.justify-between {
    justify-content: space-between;
}
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
} 