/* Manajemen Admin Styles */
.manajemen-admin-container {
    padding: 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-title-section h1 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.admin-title-section p {
    color: #6c757d;
    margin-bottom: 0;
}

.btn-add-admin {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 20px;
    padding: 12px;
    height: 62px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 116, 123, 0.3);
}

.btn-add-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 116, 123, 0.4);
    color: white;
}

.admin-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: all 0.3s ease;
}

.admin-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.admin-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;   
    padding: 20px;
}

.admin-card-title {
    color: white;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-table {
    margin: 0;
    width: 100%;
}

.admin-table thead th {
    background-color: var(--dark-color);
    color: #ffff;
    font-weight: 600;
    padding: 15px;
    text-align: start;
}

.admin-table tbody tr {
    transition: background-color 0.3s ease;
}

.admin-table tbody tr:hover {
    background-color: rgba(1, 116, 123, 0.05);
}

.admin-table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

.admin-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--light-color);
}

.admin-avatar-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.admin-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.admin-email {
    color: #6c757d;
    font-size: 13px;
}

.admin-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-action {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-edit {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.btn-edit:hover {
    background-color: #ffc107;
    color: white;
    transform: scale(1.1);
}

.btn-delete {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.btn-delete:hover {
    background-color: #dc3545;
    color: white;
    transform: scale(1.1);
}

/* Modal Styles */
.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom: none;
    padding: 20px;
}

.modal-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 210, 223, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    font-size: 12px;
    margin-top: 5px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.photo-preview {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px dashed #dee2e6;
    display: none;
}

.photo-preview.show {
    display: block;
}

.photo-placeholder {
    width: 100px;
    height: 100px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-placeholder:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 20px;
    gap: 10px;
}

.btn-modal {
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-cancel {
    background-color: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background-color: #5a6268;
    color: white;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    color: white;
    transform: translateY(-1px);
}

/* Empty State */
.empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 64px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-state h4 {
    color: #6c757d;
    margin-bottom: 10px;
}

/* Loading State */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-actions {
        justify-content: flex-start;
        margin-top: 10px;
    }
    
    .admin-table {
        font-size: 14px;
    }
    
    .admin-table thead th,
    .admin-table tbody td {
        padding: 10px 8px;
    }
    
    .modal-body {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .admin-table thead th:nth-child(3),
    .admin-table tbody td:nth-child(3) {
        display: none;
    }
}

/* Search and Toolbar Styles */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    gap: 15px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 2;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 45px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.search-box input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 210, 223, 0.25);
}

.btn-clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-clear-search:hover {
    background: #f8f9fa;
    color: #dc3545;
}

.toolbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.per-page-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    background: white;
    min-width: 150px;
}

.per-page-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 210, 223, 0.25);
}

/* Pagination Styles */
.pagination-container {
    padding: 20px;
    border-top: 1px solid #e9ecef;
}

.pagination-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.pagination {
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-item .page-link {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background: white;
    min-width: 40px;
    text-align: center;
}

.page-item .page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    color: #6c757d;
    background: #f8f9fa;
    border-color: #e9ecef;
    cursor: not-allowed;
}

/* Loading State */
.table-loader {
    text-align: center;
    padding: 50px 20px;
    color: #6c757d;
}

.table-loader .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

/* Responsive Styles for Pagination */
@media (max-width: 768px) {
    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: 100%;
        max-width: 100%;
    }
    
    .toolbar-actions {
        justify-content: flex-end;
    }
    
    .pagination-nav {
        flex-direction: column;
        text-align: center;
    }
    
    .pagination-info {
        order: 2;
    }
    
    .pagination {
        order: 1;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-item .page-link {
        padding: 6px 10px;
        min-width: 35px;
        font-size: 14px;
    }
    
    .admin-table thead th:nth-child(3),
    .admin-table tbody td:nth-child(3) {
        display: none;
    }
}