/* Admin content area */
.admin-content {
    margin-left: 200px;
    padding-left: 32px;
    padding-right: 32px;
    min-height: 100vh;
    padding-top: 40px;
    background: #f6f8fa;
    position: relative;
    max-width: 1400px;
    box-sizing: border-box;
}

.admin-table-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.admin-title {
    color: #181c2a !important; 
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Admin table styles */
.admin-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.admin-table thead th {
    background: #10B981;
    color: white;
    font-weight: 600;
    padding: 10px 12px;
    border: none;
    font-size: 0.875rem;
}

.admin-table tbody td {
    padding: 10px 12px;
    vertical-align: middle;
    font-size: 0.875rem;
}

.admin-table tbody tr:hover {
    background: #f0fdf4;
}

/* Button styles */
.btn-primary {
    background: #10B981;
    border-color: #10B981;
}

.btn-primary:hover {
    background: #0d966a;
    border-color: #0d966a;
}

/* Thumbnail for photos in admin tables */
.photo-thumb {
    height: 40px;
    width: auto;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 1px 4px #00214722;
}

/* admin-panel.css: Custom styles for admin panel pages (sidebar, tables, modals, etc.) */

* {
    box-sizing: border-box;
}

body {
    background: #f6f8fa;
    font-family: 'Open Sans', sans-serif;
    min-height: 100vh;
}

.sidebar {
    width: 200px;
    height: 100vh;
    background: #181c2a;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 32px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar .logo {
    height: 32px;
    margin-bottom: 32px;
}

.sidebar .nav-link {
    color: #fff;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 8px;
    margin: 4px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    width: calc(100% - 32px);
}

.sidebar .nav-link:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.sidebar .nav-link.active {
    background: #10B981;
    color: #fff;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}
  

.sidebar .nav-icon {
    font-size: 1.2rem;
}

.main-content {
    margin-left: 220px;
    padding: 40px 32px;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.top-bar h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    color: #181c2a;
    margin: 0;
}

.top-bar .btn {
    background: #10B981;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 1rem;
}

.search-bar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px #00214722;
    padding: 16px 24px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-bar input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    width: 220px;
}

.search-bar .fa-search {
    color: #10B981;
    font-size: 1.2rem;
}

.card-table {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px #00214722;
    padding: 0;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table th {
    background: #f6f8fa;
    color: #181c2a;
    font-weight: 700;
    border-bottom: 2px solid #e5e7eb;
}

.table td {
    vertical-align: middle;
}

.table tbody tr {
    transition: background 0.2s;
}

.table tbody tr:hover {
    background: #f0fdf4;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fbbf24;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 12px;
}

.action-menu {
    position: relative;
}

.action-btn {
    background: none;
    border: none;
    color: #10B981;
    font-size: 1.3rem;
    cursor: pointer;
}

.action-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 32px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px #00214722;
    min-width: 120px;
    z-index: 100;
}

.action-menu.open .action-dropdown {
    display: block;
}

.action-dropdown button {
    width: 100%;
    background: none;
    border: none;
    color: #181c2a;
    padding: 10px 18px;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
}

.action-dropdown button:hover {
    background: #f0fdf4;
    color: #10B981;
}

/* Dashboard-specific styles */
.admin-header {
    background: linear-gradient(90deg, #002147 0%, #10B981 100%);
    color: #fff;
    padding: 32px 0 24px 0;
    text-align: center;
    box-shadow: 0 4px 24px #00214722;
}

.admin-header h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.admin-header p {
    font-size: 1.15rem;
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin: 32px 0;
}

.stat-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 8px #10B98133;
    padding: 32px 24px;
    min-width: 220px;
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
    color: #002147;
}

.stat-card .stat-label {
    color: #10B981;
    font-size: 1rem;
    margin-bottom: 6px;
}

.stat-card .stat-value {
    font-size: 2.2rem;
    font-family: 'Merriweather', serif;
    color: #002147;
}

.admin-section {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 8px #00214722;
    margin-bottom: 32px;
    padding: 24px;
}

.admin-section h2 {
    font-family: 'Merriweather', serif;
    color: #002147;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
}

.admin-table th,
.admin-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table th {
    background: #10B981;
    color: #fff;
    font-weight: 600;
}

.admin-table tr:hover {
    background: #f0fdf4;
}

.admin-action-btn {
    background: #002147;
    color: #10B981;
    border-radius: 24px;
    border: none;
    padding: 6px 18px;
    font-weight: 600;
    transition: all .2s;
}

.admin-action-btn:hover {
    background: #10B981;
    color: #002147;
}

.traffic-graph {
    width: 100%;
    height: 320px;
    margin-bottom: 24px;
}

/* Add more admin-specific styles as needed */