:root {
    --deep-blue: #002244;
    --orange: #FF6B35;
    --light-blue: #E6F2FF;
    --light-orange: #FFF1E6;
    --white: #ffffff;
    --gray: #f4f4f4;
    --dark-gray: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-blue);
    color: var(--dark-gray);
}

/* Login page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: var(--deep-blue);
}

.login-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Admin layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--deep-blue);
    color: white;
    padding: 1rem 0;
}

.sidebar-header {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.sidebar-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--orange);
}

.sidebar-nav ul {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-nav li {
    margin: 0.5rem 0;
}

.sidebar-nav a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--orange);
    color: var(--deep-blue);
}

.admin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-bar {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 2px solid var(--orange);
    text-align: right;
}

.content-area {
    padding: 2rem;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.card h3 {
    color: var(--deep-blue);
    margin-bottom: 0.5rem;
}

.card .big-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--orange);
}

/* Buttons */
.btn, .btn-small {
    display: inline-block;
    background: var(--orange);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
    margin-right: 0.5rem;
}

.btn:hover, .btn-small:hover {
    background: #e55a2b;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.btn-secondary {
    background: var(--deep-blue);
}

.btn-secondary:hover {
    background: #001122;
}

.danger {
    background: #dc3545;
}

.danger:hover {
    background: #c82333;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--deep-blue);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

th {
    background: var(--deep-blue);
    color: white;
    padding: 12px;
    text-align: left;
}

td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

tr:hover {
    background: var(--light-orange);
}

/* Messages */
.error, .success {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
}
.attachment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.attachment-item {
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 4px;
    background: white;
    text-align: center;
}
.attachment-item img,
.attachment-item video,
.attachment-item iframe {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
}