/* Admin panel — aligned with public site (Playfair + Lato, kennel accent; fonts loaded in layout) */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #c0392b;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --sidebar-width: 250px;
}

.admin-body {
    font-family: 'Lato', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.header-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
}

.sidebar-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: block;
}

.sidebar-sub {
    display: block;
    font-size: 0.75rem;
    color: #bdc3c7;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.text-muted {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.sidebar nav ul li a i {
    width: 1.25rem;
    margin-right: 10px;
    opacity: 0.9;
}

.alert {
    padding: 12px 16px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.alert-error {
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #ffcdd2;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    margin-top: 10px;
}

body {
    font-family: 'Lato', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary-color);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100%;
    left: 0;
    top: 0;
}

.sidebar-header {
    padding: 20px;
    background-color: var(--secondary-color);
    text-align: center;
}

.sidebar-header h3 {
    margin: 0;
    font-weight: 600;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar nav ul li a {
    display: block;
    padding: 15px 20px;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.sidebar nav ul li a:hover, .sidebar nav ul li a.active {
    background-color: var(--secondary-color);
    color: white;
    border-left-color: var(--accent-color);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 20px;
    width: calc(100% - var(--sidebar-width));
}

.header {
    background: white;
    padding: 15px 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-radius: 5px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.admin-lang-switch a {
    color: #7f8c8d;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 6px;
    border-radius: 4px;
}

.admin-lang-switch a:hover {
    color: var(--accent-color);
}

.admin-lang-switch a.is-active {
    color: var(--accent-color);
    background: rgba(192, 57, 43, 0.1);
}

.admin-lang-sep {
    color: #ccc;
    user-select: none;
}

.card {
    background: white;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #a93226;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

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

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
}

.stat-card h3 {
    margin: 0;
    font-size: 2rem;
    color: var(--accent-color);
}

.stat-card p {
    color: #7f8c8d;
    margin-top: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0 16px;
}

.btn-secondary {
    background-color: var(--secondary-color);
    margin-left: 8px;
}

.btn-secondary:hover {
    background-color: #2c3e50;
}

.thumb-preview {
    max-width: 200px;
    max-height: 200px;
    border-radius: 6px;
    margin-top: 8px;
    border: 1px solid var(--border-color, #e0e0e0);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #ecf0f1;
    color: var(--primary-color);
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.admin-gallery-item {
    background: var(--bg-color);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
}

.admin-gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.admin-gallery-meta {
    padding: 12px;
    font-size: 0.9rem;
}
