﻿body {
}
* {
    font-family: "Inter", sans-serif;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

    .loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid #3b82f6;
        border-radius: 50%;
        border-right-color: transparent;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modal Styles */
.modal {
    transition: all 0.3s ease;
}

    .modal.show {
        display: flex !important;
    }

.modal-content {
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Button Enhancements */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .btn:active {
        transform: translateY(0);
    }

    .btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transition: all 0.3s ease;
        transform: translate(-50%, -50%);
    }

    .btn:active::before {
        width: 100%;
        height: 100%;
    }

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

    .notification.show {
        transform: translateX(0);
    }

    .notification.success {
        background: #10b981;
    }

    .notification.error {
        background: #ef4444;
    }

    .notification.warning {
        background: #f59e0b;
    }

    .notification.info {
        background: #3b82f6;
    }

/* Navigation Active State */
.nav-item.active {
    background: #f3f7fa;
    color: #00294d;
    font-weight: 600;
}

    .nav-item.active i {
        color: #1d4ed8;
    }

/* Custom Form Controls */
.form-control {
    transition: all 0.3s ease;
}

    .form-control:focus {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    }

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

        #sidebar.mobile-open {
            transform: translateX(0);
        }

    #main-section {
        margin-left: 0;
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 25;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

        .mobile-overlay.show {
            opacity: 1;
            visibility: visible;
        }
}





@media (max-width: 768px) {
    .w-\[calc\(100\%-17rem\)\] {
        width: calc(100% - 0rem) !important;
    }
}
@media (max-width: 768px) {
    .applications-grid {
        grid-template-columns: 1fr;
    }

    .application-card {
        padding: 1rem;
    }
}

/* Mobile Responsive Improvements */
@media (max-width: 640px) {
    .view-toggle span {
        display: none;
    }

    .view-toggle i {
        margin-right: 0;
    }
}
