/* 
   Prime GYM Fit - Admin Panel Styling 
*/

:root {
    --bg-dark: #0a0a0c;
    --bg-darker: #050505;
    --bg-card: rgba(20, 20, 25, 0.7);
    --bg-card-hover: rgba(30, 30, 38, 0.8);
    --accent-green: #00ff88;
    --accent-blue: #00e5ff;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.08);
    
    --sidebar-width: 260px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
}

/* Utilities */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--bg-darker);
}

.btn-primary:hover {
    background: #00d973;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.9rem;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-darker);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}
.logo-accent { color: var(--accent-green); }

.sidebar-nav {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-item i {
    font-size: 1.25rem;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.nav-item.active {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    border-right: 3px solid var(--accent-green);
}

.back-btn {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    border-radius: 0;
    padding-top: 24px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

/* Header */
.top-header {
    height: 80px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: var(--bg-dark);
    position: sticky;
    top: 0;
    z-index: 10;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 20px;
    width: 300px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-main);
    outline: none;
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.notification-icon {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
}

.notification-icon:hover { color: var(--text-main); }

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4d4d;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    width: 320px;
    max-height: 400px;
    display: none;
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.notification-dropdown.active {
    display: flex;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.dropdown-header h3 {
    font-size: 1rem;
    color: var(--text-main);
}

.clear-all-btn {
    background: transparent;
    border: none;
    color: var(--accent-green);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}

.clear-all-btn:hover {
    text-decoration: underline;
}

.dropdown-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 300px;
    padding-right: 4px;
}

.notification-item {
    padding: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.85rem;
}

.notification-item-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.notification-item-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notification-item-details {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name { font-weight: 600; font-size: 0.95rem; }
.user-role { font-size: 0.8rem; color: var(--text-muted); }

/* Dashboard Content */
.dashboard-content {
    padding: 32px;
}

.page-title {
    margin-bottom: 32px;
}

.page-title h1 { font-size: 2rem; margin-bottom: 8px; }
.page-title p { color: var(--text-muted); }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}

.stat-card:hover { transform: translateY(-5px); }

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.stat-details h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}

.chart-container, .table-container {
    padding: 24px;
}

.chart-container h2, .table-container h2 {
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.chart-wrapper {
    position: relative;
    height: 250px;
    display: flex;
    justify-content: center;
}

/* Table */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active { background: rgba(0, 255, 136, 0.1); color: var(--accent-green); }
.status-warning { background: rgba(255, 204, 0, 0.1); color: #ffcc00; }
.status-danger { background: rgba(255, 77, 77, 0.1); color: #ff4d4d; }

.action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.3s;
}

.action-btn:hover { color: var(--text-main); }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.close-modal-btn:hover { color: var(--text-main); }

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    outline: none;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--accent-green);
}

.form-group select option {
    background: var(--bg-darker);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); z-index: 100; transition: transform 0.3s; }
    .main-content { margin-left: 0; }
    /* Mobile nav toggle logic could be added here */
}
