/* ============ Common Styles ============ */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

#notification-area {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.notification {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    color: white;
    animation: slideIn 0.3s ease-out;
    position: relative;
}

.notification.success {
    background-color: #28a745;
}

.notification.error {
    background-color: #dc3545;
}

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

/* ============ Customer Management Styles ============ */
.customer-management-container {
    padding: 20px;
}

.card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    padding: 15px 20px;
}

.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 12px 15px;
}

.table td {
    padding: 10px 15px;
    vertical-align: middle;
}

.actions {
    white-space: nowrap;
    width: 120px;
}

.btn-edit, .btn-delete {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    margin: 0 2px;
}

#searchInput {
    max-width: 200px;
}

.form-control {
    border-radius: 4px;
    padding: 10px 15px;
}

.btn {
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 500;
}

.alert {
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 15px;
}
 .menu-overlay {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    display: none;
 }
@media (max-width: 1080px) {
    .side-menu {
        width: 0;
        position: fixed;
        z-index: 1002;
        height: 100vh;
        top: 50px;
        left: 0;
    }
    
    .side-menu.expanded {
        width: 220px;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
        position: fixed;
        left: 10px;
        top: 10px;
        z-index: 1003;
    }


    .top-panel {
        padding: 0 10px;
        flex-wrap: wrap;
        height: auto;
    }
    
    .user-info, #lblClock {
        display: none; /* Fsheh elementet e panevojshme në mobile */
    }
    
    .app-title {
        font-size: 14px;
        margin: 0 auto;
    }

    .stat-panel {
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    .chart-container {
        padding: 10px;
    }
    
    #salesChart {
        max-height: 300px;
    }

   
    
    .menu-overlay {
        display: block;
    }

    .window-controls {
        display: none;
    }
    body { border: 5px solid red !important; }
}