/**
 * SIM ASSET - Custom Styles
 */

body {
    font-family: 'Source Sans Pro', sans-serif;
    background-color: #f4f6f9;
}

.sidebar-active {
    background-color: #1e282c;
    border-left: 3px solid #00a65a;
    color: #fff;
}

.sidebar-link:hover {
    background-color: #1e282c;
    color: #fff;
}

/* Transisi halus */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Toast notification */
#toast {
    transition: all 0.3s ease;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Table responsive */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Form input focus */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 166, 90, 0.1);
}

/* Button hover effects */
button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

/* Status badge */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Modal backdrop */
.modal-backdrop {
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Sidebar Collapsed State */
#sidebar.collapsed {
    width: 64px !important;
}

#sidebar.collapsed .sidebar-text {
    display: none;
}

#sidebar.collapsed .flex.items-center.space-x-3 > div:last-child {
    display: none;
}

#sidebar.collapsed .w-10 {
    width: 2.5rem;
    height: 2.5rem;
}

#sidebar.collapsed .flex.items-center.justify-between > div:first-child {
    justify-content: center;
}

/* Sidebar Active State with Green Accent */
.sidebar-active {
    background: rgba(52, 199, 89, 0.15) !important;
    border-left: 3px solid #34C759;
    color: #fff !important;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Sidebar styling to match design */
#sidebar {
    border-right: 2px solid #34C759;
}

/* Sidebar brighter styling for better logo visibility */
#sidebar {
    background-color: #9aabbf !important;
}

/* Make logo header brighter */
#sidebar > div:first-child {
    background-color: #8a9aaf !important;
    border-bottom-color: #b0bcc8 !important;
}

/* Make user panel brighter */
#sidebar > div:nth-child(2) {
    background-color: #8a9aaf !important;
    border-bottom-color: #b0bcc8 !important;
}

#sidebar > div:nth-child(2):hover {
    background-color: #9aabbf !important;
}

/* Improve text contrast in sidebar */
#sidebar [data-i18n="app-subtitle"] {
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#sidebar [data-i18n="app-name"] {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#sidebar .text-gray-400 {
    color: #e5e7eb !important;
}

/* User position styling - make it more visible */
#sidebar #user-position {
    color: #f0f4f8 !important;
    font-weight: 500;
}

#sidebar .text-gray-500 {
    color: #f3f4f6 !important;
}

#sidebar .border-gray-700 {
    border-color: #9ca3af !important;
}

/* Make navigation section header more visible */
#sidebar nav ul li:first-child {
    color: #ffffff !important;
    font-weight: 600;
}

/* Make copyright text more visible */
#sidebar > div:last-child {
    color: #ffffff !important;
}

