﻿/* ShopManagement.Shared/wwwroot/styles.css */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Dashboard Card Hover Effect */
.card.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .card.hover-lift:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    }

/* Table Row Hover */
.table-hover tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
    cursor: pointer;
}

/* Status Badges */
.badge-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-pending {
    background-color: #ffc107;
    color: #000;
}

.badge-completed {
    background-color: #28a745;
    color: #fff;
}

.badge-inprogress {
    background-color: #17a2b8;
    color: #fff;
}

.badge-cancelled {
    background-color: #dc3545;
    color: #fff;
}

.badge-active {
    background-color: #28a745;
    color: #fff;
}

.badge-inactive {
    background-color: #6c757d;
    color: #fff;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    body {
        padding: 0;
        margin: 0;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
    }
}

/* Loading Spinner Overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Sidebar Styles */
.sidebar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    transition: all 0.3s;
}

    .sidebar .nav-link {
        color: rgba(255, 255, 255, 0.8);
        padding: 12px 20px;
        transition: all 0.3s;
    }

        .sidebar .nav-link:hover {
            color: white;
            background: rgba(255, 255, 255, 0.1);
            padding-left: 25px;
        }

        .sidebar .nav-link.active {
            color: white;
            background: rgba(255, 255, 255, 0.2);
            border-left: 4px solid white;
        }

        .sidebar .nav-link i {
            width: 25px;
            margin-right: 10px;
        }

/* Form Styles */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #667eea;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #5a67d8 0%, #6b46a0 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

/* Card Styles */
.card {
    border-radius: 10px;
    border: none;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}


/* Sidebar Styles */
.sidebar, .sidebar-employee {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.sidebar-employee {
    background: linear-gradient(135deg, #6b6ed4 0%, #3F51B5 100%);
    /*linear-gradient(135deg, #11998e 0%, #38ef7d 100%);*/
}

.nav-menu {
    flex: 1;
    overflow-y: auto;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

    .nav-link:hover {
        color: white;
        background: rgba(255, 255, 255, 0.1);
        padding-left: 25px;
    }

    .nav-link.active {
        color: white;
        background: rgba(255, 255, 255, 0.2);
        border-left: 4px solid white;
    }

    .nav-link i {
        width: 25px;
        margin-right: 10px;
        font-size: 1.1rem;
    }

.nav-section-title {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Avatar Styles */
.avatar {
    font-size: 14px;
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar, .sidebar-employee {
        position: fixed;
        left: -280px;
        top: 0;
        z-index: 1050;
        height: 100vh;
        overflow-y: auto;
    }

        .sidebar.show, .sidebar-employee.show {
            left: 0;
        }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
    }
}

/* Animation */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

.sidebar.show, .sidebar-employee.show {
    animation: slideIn 0.3s ease-out;
}