/* Admin Panel Styles */
/* General Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background: #2c3e50; /* Dark Blue/Grey */
    color: #ecf0f1;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.sidebar-header h3 {
    color: #ffc107; /* Gold accent */
    font-size: 1.5rem;
}

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

.sidebar-nav ul li a {
    display: block;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.sidebar-nav ul li a:hover, .sidebar-nav ul li.active a {
    background: #34495e;
    color: #ffc107;
}

.sidebar-nav ul li a i {
    margin-right: 10px;
}

/* Admin Content Wrapper */
.admin-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Topbar Styles */
.admin-topbar {
    background: #fff;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.admin-topbar .user-info {
    font-weight: bold;
    color: #34495e;
}

.admin-topbar .user-info i {
    margin-right: 5px;
    color: #ffc107;
}

.admin-topbar .topbar-nav a {
    text-decoration: none;
}

/* Main Content Styles */
.admin-main-content {
    padding: 30px;
    flex-grow: 1;
}

.admin-main-content h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #ffc107;
    padding-bottom: 10px;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #34495e;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    background: #3498db; /* Blue */
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}

.btn:hover {
    background: #2980b9;
}

.btn-primary {
    background: #2ecc71; /* Green */
}

.btn-primary:hover {
    background: #27ae60;
}

.btn-danger {
    background: #e74c3c; /* Red */
}

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

/* Alert Messages */
.flash-messages {
    margin-bottom: 20px;
}

.alert {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

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

.data-table th {
    background-color: #34495e;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.data-table tr:hover {
    background-color: #f1f1f1;
}

.action-links a {
    margin-right: 10px;
    color: #3498db;
    text-decoration: none;
}

.action-links a:hover {
    text-decoration: underline;
}
