/* File: assets/css/style.css */
/* Style kustom untuk aplikasi Dossier Pegawai */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
}

/* Animasi untuk elemen yang muncul */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animasi loading spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animasi pulse untuk tombol */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Animasi untuk hover card */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

/* Style umum */
body {
    font-family: 'Nunito', sans-serif;
    background-color: #f8f9fa;
    color: var(--dark-color);
    margin: 0;
    padding: 0;
}

.page-container {
    animation: fadeIn 0.5s ease;
}

/* Header dan navbar */
.navbar-brand {
    font-weight: 700;
    color: var(--light-color) !important;
}

.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.navbar .nav-link.active {
    color: white !important;
    font-weight: 600;
}

/* Card styles */
.card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    animation: float 5s ease infinite;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.card-title {
    color: var(--primary-color);
    font-weight: 700;
}

/* Form styles */
.form-control {
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

/* Button styles */
.btn {
    border-radius: 5px;
    font-weight: 600;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    animation: pulse 1s infinite;
}

.btn-danger {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-danger:hover {
    background-color: #c0392b;
    border-color: #c0392b;
}

/* Tabel styles */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    border: none;
    padding: 15px;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.table td {
    padding: 15px;
    vertical-align: middle;
}

/* Badge styles */
.badge {
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 30px;
}

/* Progress bar */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
    margin-top: 5px;
    overflow: hidden;
}

.progress-bar {
    transition: width 1s ease;
}

/* Status indicators */
.status-aktif {
    color: var(--success-color);
}

.status-tidak-aktif {
    color: var(--danger-color);
}

/* Login page */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.login-card {
    max-width: 400px;
    width: 100%;
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: var(--primary-color);
    font-weight: 700;
}

.login-button {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background-color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Dashboard cards */
.dashboard-card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 20px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-card .icon {
    width: 60px;
    height: 60px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 24px;
    color: var(--secondary-color);
}

.dashboard-card .pegawai-icon {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
}

.dashboard-card .dokumen-icon {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--accent-color);
}

.dashboard-card .kategori-icon {
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.dashboard-card .info {
    flex: 1;
}

.dashboard-card .info h4 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.dashboard-card .info p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

/* Modal styles */
.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.modal-title {
    font-weight: 700;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Loader */
.loader {
    display: inline-block;
    width: 25px;
    height: 25px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-container .loader {
    width: 60px;
    height: 60px;
    border-width: 5px;
}

/* Pagination */
.page-link {
    color: var(--secondary-color);
    border: 1px solid #e2e8f0;
    margin: 0 2px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.page-item.active .page-link {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .dashboard-card {
        padding: 15px;
    }
    
    .dashboard-card .icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .dashboard-card .info h4 {
        font-size: 24px;
    }
    
    .table thead th {
        padding: 10px;
    }
    
    .table td {
        padding: 10px;
    }
    
    .login-card {
        padding: 20px;
        margin: 0 20px;
    }
}

/* Tooltip */
.tooltip {
    font-family: 'Nunito', sans-serif;
}

.tooltip-inner {
    background-color: var(--dark-color);
    border-radius: 5px;
    padding: 8px 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Toast notifications */
.toast {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.toast-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
}

/* Dropdown menu */
.dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 0;
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
}

.dropdown-divider {
    margin: 0;
}

/* Custom file input */
.custom-file-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Perbaikan untuk nav-tabs di modal detail pegawai */
.modal .nav-tabs .nav-link {
    color: #495057;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    margin-right: 5px;
    border-radius: 4px 4px 0 0;
    font-weight: 500;
}

.modal .nav-tabs .nav-link.active {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.modal .nav-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
}

/* Pastikan tab content terlihat jelas */
.modal .tab-content {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 1.5rem;
    border-radius: 0 0 4px 4px;
}

/* Pastikan warna status aktif/nonaktif terlihat jelas */
.badge.bg-success {
    background-color: #198754 !important;
    color: white !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
    color: white !important;
}