/* Base styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --light-gray: #ecf0f1;
    --dark-gray: #34495e;
    --text-color: #2c3e50;
    --border-color: #bdc3c7;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

/* Site header shared styles (match index.html) */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { display: flex; align-items: center; justify-content: center; }
.logo-text h1 { font-size: 1.6rem; margin-bottom: 2px; }
.logo-text p { font-size: 0.9rem; opacity: 0.9; }
nav ul { display: flex; list-style: none; gap: 30px; }
nav a { color: #fff; text-decoration: none; font-weight: 500; transition: color 0.3s; cursor: pointer; }
nav a:hover { color: var(--warning-color); }
.mobile-menu-btn { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
/* Ensure SVG/logo image fits inside the round logo container */
.logo-icon img { width: clamp(32px, 16vw, 80px); height: auto; display: block; }

/* Content styles */
.content {
    padding: 2rem 0;
}

/* Footer styles */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Footer grid to match index.html */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}
.footer-section h3 { margin-bottom: 20px; color: var(--warning-color); }
.footer-section p,
.footer-section a { color: #bdc3c7; text-decoration: none; line-height: 1.8; }
.footer-section a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #34495e; color: #95a5a6; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.05s ease;
}
.btn:hover { background-color: #2d7fb9; }
.btn:active { transform: translateY(1px); }
.btn-outline { background: transparent; border: 1px solid var(--secondary-color); color: var(--secondary-color); }
.btn-outline:hover { background: var(--secondary-color); color: #fff; }
.btn-danger { background: var(--accent-color); }
.btn-danger:hover { background: #c0392b; }

/* Cards / panels */
.card {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
}

/* Form */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 600; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="file"] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

/* Table */
table { width: 100%; border-collapse: collapse; }
thead th {
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    padding: 0.75rem 0.5rem;
    background: #f8fafc;
}
tbody td { padding: 0.75rem 0.5rem; border-bottom: 1px solid #eef2f5; vertical-align: top; }
tbody tr:hover { background: #fafafa; }
.actions { display: flex; gap: 8px; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-badge {
    display: inline-block;
    background: #eef6fd;
    color: #23679b;
    border: 1px solid #d7e8f7;
    padding: 2px 8px;
    font-size: 0.8rem;
    border-radius: 999px;
}

/* Utilities */
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.hidden { display: none !important; }

/* Responsive tweaks */
@media (max-width: 640px) {
    .header-content { gap: 10px; }
    .actions { flex-direction: column; }
}

/* Responsive tweaks for shared header */
@media (max-width: 768px) {
    .header-content { flex-direction: column; gap: 20px; }
    nav ul { display: none; flex-direction: column; gap: 15px; width: 100%; text-align: center; }
    nav ul.active { display: flex; }
    .mobile-menu-btn { display: block; }
}

/* Toasts */
.toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    min-width: 260px;
    max-width: 360px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 12px 14px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    animation: slideIn 0.2s ease;
}
.toast .title { font-weight: 700; margin-bottom: 4px; }
.toast .message { font-size: 0.95rem; }
.toast .close { background: transparent; border: 0; cursor: pointer; color: #777; }
.toast.success { border-left-color: var(--success-color); }
.toast.error { border-left-color: var(--accent-color); }
.toast.info { border-left-color: var(--secondary-color); }
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}