/* Custom Styles */
.sidebar-active {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: white;
}

.sidebar-item {
    transition: all 0.3s ease;
}

.sidebar-item:hover {
    background-color: #f3f4f6;
}

.sidebar-item.sidebar-active:hover {
    background: linear-gradient(135deg, #db2777 0%, #7c3aed 100%);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 9999px;
    min-width: 20px;
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 50;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
}

/* Status Badges */
.status-aktif { background-color: #dcfce7; color: #166534; }
.status-nonaktif { background-color: #fee2e2; color: #991b1b; }
.status-pending { background-color: #fef3c7; color: #92400e; }
.status-confirmed { background-color: #dbeafe; color: #1e40af; }
.status-ongoing { background-color: #fef3c7; color: #92400e; }
.status-completed { background-color: #dcfce7; color: #166534; }
.status-cancelled { background-color: #fee2e2; color: #991b1b; }

/* Package Badges */
.package-platinum { background: linear-gradient(135deg, #e5e7eb 0%, #9ca3af 100%); color: #1f2937; }
.package-gold { background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%); color: #78350f; }
.package-silver { background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); color: #3730a3; }

/* Payment Status Badges */
.payment-lunas { background-color: #dcfce7; color: #166534; }
.payment-dp { background-color: #fef3c7; color: #92400e; }
.payment-belum { background-color: #fee2e2; color: #991b1b; }
.payment-overdue { background-color: #fecaca; color: #7f1d1d; }

.main-content {
    margin-left: 256px;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        position: fixed;
        z-index: 40;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

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

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

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

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

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ec4899;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Event status badges */
.event-status-client-baru {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.event-status-loading-out {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.event-status-terpasang {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: white;
}

.event-status-loading-in {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
}

.event-status-done {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}
