/* Snooker.ma Admin - Custom Styles */

/* Dark Mode Premium Theme */
:root {
    --snooker-red: #ef4444;
    --snooker-green: #10b981;
    --snooker-dark: #0f172a;
    --snooker-darker: #020617;
    --snooker-gray: #1e293b;
    --snooker-light: #334155;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--snooker-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--snooker-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--snooker-light);
}

/* Language Selector */
.lang-btn {
    padding: 6px 12px;
    background: var(--snooker-gray);
    border: 1px solid var(--snooker-light);
    color: #9ca3af;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    font-weight: 500;
}

.lang-btn:hover {
    background: var(--snooker-light);
    color: white;
}

.lang-btn.active {
    background: var(--snooker-red);
    border-color: var(--snooker-red);
    color: white;
}

/* Navigation Menu Items */
.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #9ca3af;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    margin-bottom: 4px;
}

.nav-item:hover {
    background: var(--snooker-gray);
    color: white;
}

.nav-item.active {
    background: var(--snooker-red);
    color: white;
}

.nav-item i {
    width: 20px;
    margin-right: 12px;
}

/* Cards */
.card {
    background: var(--snooker-dark);
    border: 1px solid var(--snooker-gray);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--snooker-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--snooker-red);
    color: white;
}

.btn-primary:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-secondary {
    background: var(--snooker-gray);
    color: white;
}

.btn-secondary:hover {
    background: var(--snooker-light);
}

.btn-success {
    background: var(--snooker-green);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

/* Inputs */
.input {
    width: 100%;
    padding: 12px 16px;
    background: var(--snooker-gray);
    border: 1px solid var(--snooker-light);
    border-radius: 8px;
    color: white;
    transition: all 0.2s;
}

.input:focus {
    outline: none;
    border-color: var(--snooker-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.input::placeholder {
    color: #64748b;
}

/* Tables */
.table-container {
    background: var(--snooker-dark);
    border: 1px solid var(--snooker-gray);
    border-radius: 12px;
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: var(--snooker-gray);
}

.table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: 16px;
    border-top: 1px solid var(--snooker-gray);
    color: #cbd5e1;
}

.table tbody tr:hover {
    background: var(--snooker-gray);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--snooker-gray);
    border-top: 3px solid var(--snooker-red);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RTL Support for Arabic */
[dir="rtl"] {
    direction: rtl;
}

[dir="rtl"] .nav-item i {
    margin-right: 0;
    margin-left: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
    #sidebar {
        transform: translateX(-100%);
    }
    
    #sidebar.open {
        transform: translateX(0);
    }
    
    .ml-64 {
        margin-left: 0;
    }
}

/* Settings Tabs */
.settings-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.settings-tab:hover {
    color: white;
    border-bottom-color: var(--snooker-gray);
}

.settings-tab.active {
    color: var(--snooker-red);
    border-bottom-color: var(--snooker-red);
}

.settings-tab-content {
    min-height: 300px;
}

/* Print Styles */
@media print {
    #sidebar,
    header {
        display: none;
    }
    
    .ml-64 {
        margin-left: 0;
    }
}

