/* 
 * Admin Dashboard Styles - Handbalvereniging Aeolus
 */

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    width: 80px;
    margin-bottom: 15px;
}

.login-logo h1 {
    font-size: 1.5rem;
    color: var(--secondary);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.btn-block {
    width: 100%;
}

/* Admin Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: var(--secondary);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header img {
    width: 40px;
}

.sidebar-header h2 {
    font-size: 1.1rem;
    margin: 0;
}

/* User info bar */
.sidebar-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-user .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

.sidebar-user .user-info i {
    font-size: 1.2rem;
    color: var(--primary);
}

.sidebar-user .logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.sidebar-user .logout-btn:hover {
    background: #dc3545;
    color: white;
}

/* Nav highlight (voor belangrijke items) */
.sidebar-nav > ul > li > a.nav-highlight {
    background: rgba(229, 90, 1, 0.15);
    border-left: 3px solid var(--primary);
}

.sidebar-nav > ul > li > a.nav-highlight:hover {
    background: rgba(229, 90, 1, 0.25);
}

/* Nav badge */
.nav-badge {
    margin-left: auto;
    background: #dc3545;
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.sidebar-nav {
    padding: 20px 0;
}

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

.sidebar-nav > ul > li > a,
.nav-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    transition: var(--transition);
}

.sidebar-nav > ul > li > a:hover,
.sidebar-nav > ul > li > a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.sidebar-nav > ul > li > a.active {
    border-left: 3px solid var(--primary);
    background: rgba(229, 90, 1, 0.2);
}

.sidebar-nav > ul > li > a i {
    width: 20px;
    text-align: center;
    color: var(--primary);
}

.nav-title {
    color: var(--gray) !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    pointer-events: none;
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: 260px;
    background: var(--light-gray);
    min-height: 100vh;
}

.admin-header {
    background: var(--white);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

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

.admin-content {
    padding: 30px;
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.stat-icon.primary {
    background: rgba(229, 90, 1, 0.1);
    color: var(--primary);
}

.stat-icon.success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.stat-icon.warning {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning);
}

.stat-icon.info {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.stat-info h3 {
    font-size: 2rem;
    margin: 0;
    line-height: 1;
}

.stat-info p {
    margin: 5px 0 0;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Admin Cards */
.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.admin-card-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.admin-card-body {
    padding: 25px;
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.admin-table th {
    font-weight: 600;
    background: var(--light-gray);
    font-size: 0.9rem;
}

.admin-table tr:hover {
    background: rgba(0,0,0,0.02);
}

.admin-table .actions {
    white-space: nowrap;
}

.admin-table .actions a,
.admin-table .actions button {
    padding: 5px 10px;
    margin-right: 5px;
    font-size: 0.85rem;
}

.admin-table img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.badge-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

.badge-primary {
    background: rgba(229, 90, 1, 0.1);
    color: var(--primary);
}

/* Forms */
.admin-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.admin-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.admin-form .form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.admin-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 90, 1, 0.1);
}

.admin-form select.form-control {
    cursor: pointer;
}

.admin-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 5px;
}

/* Buttons */
.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #c82333;
    color: var(--white);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #218838;
    color: var(--white);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-icon {
    padding: 8px 12px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.quick-action-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--secondary);
}

.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.quick-action-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.quick-action-card h4 {
    margin: 0;
    font-size: 0.95rem;
}

/* Recent Activity */
.activity-list {
    list-style: none;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0 0 5px;
}

.activity-content small {
    color: var(--gray);
}

/* Image Preview */
.image-preview {
    max-width: 200px;
    margin-top: 10px;
    border-radius: var(--radius);
    overflow: hidden;
}

.image-preview img {
    width: 100%;
    height: auto;
}

/* Editor */
.editor-toolbar {
    background: var(--light-gray);
    padding: 10px;
    border-radius: var(--radius) var(--radius) 0 0;
    border: 1px solid #ddd;
    border-bottom: none;
}

.editor-toolbar button {
    background: var(--white);
    border: 1px solid #ddd;
    padding: 5px 10px;
    margin-right: 5px;
    cursor: pointer;
    border-radius: 4px;
}

.editor-toolbar button:hover {
    background: var(--light-gray);
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .admin-form .form-row {
        grid-template-columns: 1fr;
    }
}
