/* General styling for the admin dashboard */
body {
    font-family: 'Poppins', sans-serif;
    background-image: url('../images/background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 24, 39, 0.8);
    z-index: -1;
}

/* Custom font for headers */
.font-header {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.05em;
    font-display: swap;
    font-weight: 600;
}

.glass-panel {
    background: rgba(31, 41, 55, 0.6); /* gray-800 with opacity */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 85, 99, 0.5); /* gray-600 with opacity */
}

/* Tab container styling */
#tabs-container {
    overflow-x: auto;
    /* Hide scrollbar for a cleaner look */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
#tabs-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

/* Tab button styling */
.admin-tab-button {
    padding: 0.75rem 1.5rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease-in-out;
    color: #9ca3af; /* gray-400 */
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.admin-tab-button:hover {
    color: #d1d5db; /* gray-300 */
    background-color: rgba(75, 85, 99, 0.2); /* gray-600 with opacity */
}

.admin-tab-button.active {
    color: #f59e0b; /* amber-500 */
    border-bottom-color: #f59e0b;
}

/* Tab content management */
.tab-content {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* General Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px; /* fully rounded */
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #10b981; /* emerald-500 */
    color: white;
}
.btn-primary:hover {
    background-color: #059669; /* emerald-600 */
    transform: scale(1.05);
}

.btn-secondary {
    background-color: #4b5563; /* gray-600 */
    color: white;
}
.btn-secondary:hover {
    background-color: #374151; /* gray-700 */
}

.btn-danger {
     background-color: #ef4444; /* red-500 */
     color: white;
}
.btn-danger:hover {
    background-color: #dc2626; /* red-600 */
}
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Form Input Styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background-color: rgba(55, 65, 81, 0.5); /* gray-700 with opacity */
    color: white;
    border: 1px solid #4b5563; /* gray-600 */
    transition: all 0.3s ease;
}
.form-input:focus {
    outline: none;
    ring: 2px;
    ring-color: #10b981; /* emerald-500 */
    border-color: #10b981;
}

/* Action buttons in tables */
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem; /* 40px */
    height: 2.5rem; /* 40px */
    border-radius: 9999px;
    transition: background-color 0.2s;
}
.action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* New Stat Card Styles */
.stat-card {
    @apply glass-panel p-6 rounded-xl text-center transition-transform transform hover:scale-105;
}
.stat-title {
    @apply text-sm font-semibold text-gray-400 uppercase tracking-wider;
}
.stat-number {
    @apply text-4xl font-bold text-amber-400 mt-2;
}

/* New Messages List Styles */
.message-item {
    @apply bg-gray-700/50 p-4 rounded-lg border-l-4 border-gray-600 transition-colors;
}
.message-new {
    @apply bg-emerald-900/50 border-emerald-500;
}

