/* CSS Tambahan untuk Admin Area */

/* Sidebar */
.sidebar {
    position: fixed;
    top: 60px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    height: calc(100vh - 60px);
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 12px 15px;
    border-radius: 5px;
    margin: 5px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background-color: rgba(40, 167, 69, 0.1);
}

.sidebar .nav-link.active {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.sidebar .nav-link i {
    color: #28a745;
    width: 20px;
    text-align: center;
}

/* Dashboard Stats */
.dashboard-stats .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.dashboard-stats .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

.dashboard-stats .card-icon {
    font-size: 2.5rem;
    color: #28a745;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(40, 167, 69, 0.1);
}

.dashboard-stats .card-title {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

/* Tables */
.table-hover tbody tr:hover {
    background-color: rgba(40, 167, 69, 0.05);
}

.table th {
    font-weight: 600;
    color: #495057;
    border-top: none;
}

/* Action Buttons */
.btn-action {
    width: 35px;
    height: 35px;
    padding: 0;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
}

.btn-action i {
    font-size: 1rem;
}

/* Forms */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

.form-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

/* Badges */
.badge.bg-warning {
    color: #212529 !important;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1rem 1.25rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #212529;
}

/* Footer Admin */
.footer-admin {
    margin-top: 2rem;
    padding: 1rem 0;
    font-size: 0.875rem;
    text-align: center;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
}

/* Pagination */
.page-item.active .page-link {
    background-color: #28a745;
    border-color: #28a745;
}

.page-link {
    color: #28a745;
}

.page-link:hover {
    color: #1e7e34;
}

/* Custom Upload Button */
.custom-file-upload {
    display: inline-block;
    padding: 6px 12px;
    cursor: pointer;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.custom-file-upload:hover {
    background-color: #e9ecef;
}

/* Image Preview */
.img-preview {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #dee2e6;
}

/* Summernote Editor */
.note-editor.note-frame {
    border: 1px solid #dee2e6 !important;
    border-radius: 0.25rem;
}

.note-editor.note-frame .note-statusbar {
    border-top: 1px solid #dee2e6 !important;
}

/* Responsive Tweaks */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        height: auto;
        padding-top: 1rem;
    }
    
    .dashboard-stats .card-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    main {
        padding-top: 1rem;
    }
}

/* Date Range Picker */
.daterangepicker {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.daterangepicker .ranges li.active {
    background-color: #28a745;
}

.daterangepicker td.active, 
.daterangepicker td.active:hover {
    background-color: #28a745;
}

/* Tooltips */
.tooltip-inner {
    background-color: #212529;
}

.bs-tooltip-top .tooltip-arrow::before, 
.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before {
    border-top-color: #212529;
}

.bs-tooltip-end .tooltip-arrow::before, 
.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before {
    border-right-color: #212529;
}

.bs-tooltip-bottom .tooltip-arrow::before, 
.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before {
    border-bottom-color: #212529;
}

.bs-tooltip-start .tooltip-arrow::before, 
.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before {
    border-left-color: #212529;
}