/* Data Falaa - Custom Styles */
/* Note: Main styles are in base.html for faster initial load */
/* This file contains additional styles and overrides */

:root {
    --primary-yellow: #FFD700;
    --dark-black: #1a1a1a;
    --light-yellow: #FFF8DC;
    --success-green: #28a745;
    --danger-red: #dc3545;
    --warning-orange: #ffc107;
}

/* Print Styles */
@media print {
    .sidebar,
    .btn,
    .no-print {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Loading Spinner Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pulse Animation for Status */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: var(--dark-black);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid var(--success-green);
}

.toast.error {
    border-left: 4px solid var(--danger-red);
}

.toast.warning {
    border-left: 4px solid var(--warning-orange);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Network Logo Styles */
.network-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.network-logo-sm {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Package Card Hover Effects */
.package-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.package-card.selected {
    border-color: var(--primary-yellow) !important;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

/* Empty State Styles */
.empty-state {
    padding: 60px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h5 {
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
    margin-bottom: 20px;
}

/* Data Table Enhancements */
.table-data {
    font-size: 0.9rem;
}

.table-data th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #666;
}

.table-data td {
    vertical-align: middle;
}

/* Mobile Bottom Navigation */
@media (max-width: 768px) {
    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #eee;
        display: flex;
        justify-content: space-around;
        padding: 8px 0;
        z-index: 1000;
    }

    .mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #666;
        text-decoration: none;
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    .mobile-nav a i {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }

    .mobile-nav a.active {
        color: var(--dark-black);
    }

    .main-content {
        padding-bottom: 70px !important;
    }
}

/* Form Enhancements */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--dark-black);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

/* Quick Action Buttons */
.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark-black);
    transition: all 0.3s ease;
}

.quick-action:hover {
    background: var(--light-yellow);
    transform: translateY(-2px);
}

.quick-action i {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--dark-black);
}

.quick-action span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Stats Cards */
.stat-card {
    background: linear-gradient(135deg, var(--dark-black) 0%, #333 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
}

.stat-card.yellow {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #e6c200 100%);
    color: var(--dark-black);
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Countdown Timer */
.countdown {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.countdown-item {
    text-align: center;
}

.countdown-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-black);
    background: var(--primary-yellow);
    border-radius: 8px;
    padding: 10px 15px;
    min-width: 60px;
}

.countdown-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
}
