/* Reset & Basics */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f4f6f8; /* Light grey background */
    /*color: #333333; !* Dark text *!*/
    height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; }

/* --- Top Ribbon --- */
.admin-header {
    background-color: #ffffff; /* White header */
    border-bottom: 1px solid #e0e0e0;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 10;
}

.admin-header .user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-header .user-name {
    font-weight: bold;
    color: #333333;
    font-size: 0.95rem;
}

.logout-btn {
    background: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #e74c3c;
    color: white;
}

.admin-logo img {
    height: 40px;
    vertical-align: middle;
    /*filter: invert(1); !* Invert white logo to black if needed, or use a dark version *!*/
}

/* --- Main Layout (Grid) --- */
.admin-container {
    display: flex;
    flex: 1;
    overflow: hidden; /* Prevent body scroll */
}

/* --- Column 1: Sidebar --- */
.admin-sidebar {
    width: 250px;
    background-color: #ffffff; /* White sidebar */
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    padding-top: 2rem;
}

.nav-item {
    padding: 1rem 2rem;
    color: #666666;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.nav-item:hover {
    background-color: #f0f0f0;
    color: #000000;
}

.nav-item.active {
    background-color: #fff5f5; /* Light red tint */
    color: #e74c3c;
    border-left: 3px solid #e74c3c; /* Red accent */
}

/* --- Column 2: Content Area --- */
.admin-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background-color: #f4f6f8;
}

.panel-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    color: #333;
}

.panel-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5rem;
    color: #2c3e50;
}

.login-card {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.login-card img {
    width: 150px;
    margin-bottom: 2rem;
}
.error-msg {
    color: #ff4d4d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.admin-input {
    width: 100% !important;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.05) !important;
    border-radius: 0.5rem;
    max-width: unset !important;
}