* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.progress-card {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.progress-bar {
    background: #ddd;
    border-radius: 10px;
    height: 20px;
    margin: 10px 0;
}

.progress-fill {
    background: #4CAF50;
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

/* Header */
header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    left: 0;
    width: 100vw;    /* mengikuti viewport */
    z-index: 1000;
}


.header-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-btn {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid white;
    border-radius: 3px;
}

/* Main Layout */
.main-container {
    display: flex;
    min-height: calc(100vh - 140px);
}

.sidebar {
    width: 250px;
    background: #34495e;
    color: white;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid #2c3e50;
}

.sidebar li a:hover {
    background: #2c3e50;
}

.content {
    flex: 1;
    padding: 20px;
}

/* Cards */
.card {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.welcome-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 2em;
}

.stat-info h3 {
    margin: 0;
    font-size: 1.5em;
    color: #2c3e50;
}

.stat-info p {
    margin: 5px 0 0 0;
    color: #7f8c8d;
    font-size: 0.9em;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-form label {
    font-weight: bold;
    color: #2c3e50;
}

.filter-form select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

/* Progress Section */
.progress-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.progress-section h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

/* Progress Grid */
.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.progress-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.progress-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-header h4 {
    margin: 0;
    color: #2c3e50;
    flex: 1;
}

.satuan {
    background: #34495e;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}

.progress-details {
    margin-bottom: 15px;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ecf0f1;
}

.progress-item .label {
    color: #7f8c8d;
    font-weight: 500;
}

.progress-item .value {
    font-weight: bold;
}

.progress-item .achieved {
    color: #27ae60;
}

.progress-item .deficit {
    color: #e74c3c;
}

.progress-item .surplus {
    color: #27ae60;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    background: #ecf0f1;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-text {
    font-weight: bold;
    color: #2c3e50;
    min-width: 50px;
    text-align: right;
}

.no-target {
    color: #95a5a6;
    font-style: italic;
    text-align: center;
    padding: 10px;
}

/* Quick Actions */
.quick-actions {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.quick-actions h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
}

.action-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

/* No Data State */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.no-data p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .quick-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .progress-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .progress-bar-container {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .progress-text {
        text-align: center;
    }
}

/* Buttons */
.btn-primary {
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-edit {
    background: #f39c12;
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 3px;
    margin-right: 5px;
}

.btn-delete {
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 3px;
}

.btn-cancel {
    background: #95a5a6;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 10px;
}

/* Forms */
.form {
    max-width: 600px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

.total-row {
    background-color: #f8f9fa;
    font-weight: bold;
}

.negative {
    color: #e74c3c;
}

.positive {
    color: #27ae60;
}

.role-badge {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8em;
}

.role-badge.admin {
    background: #e74c3c;
    color: white;
}

.role-badge.staff {
    background: #3498db;
    color: white;
}

/* Progress bars */
.progress-bar-small {
    background: #ddd;
    border-radius: 5px;
    height: 10px;
    width: 100px;
    display: inline-block;
    margin-right: 10px;
}

/* Messages */
.success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    background: #34495e;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    font-weight: 500;
}

/* Action Butons in Table */
.action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-edit {
    background: #f39c12;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.8em;
    transition: background 0.3s;
}

.btn-edit:hover {
    background: #e67e22;
}

.btn-delete {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.8em;
    transition: background 0.3s;
}

.btn-delete:hover {
    background: #c0392b;
}

/* Responsive Action Buttons */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 2px;
    }
    
    .btn-edit,
    .btn-delete {
        display: block;
        text-align: center;
        padding: 6px 8px;
        font-size: 0.75em;
    }
}

/* Table Responsive */
@media (max-width: 1024px) {
    .data-table {
        font-size: 0.9em;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }
}

/* Print Styles */
@media print {
    .action-buttons,
    .quick-action,
    .pagination {
        display: none !important;
    }
    
    .data-table {
        font-size: 10pt;
    }
}

/* Alamat Styles */
.alamat-cell {
    max-width: 200px;
    word-wrap: break-word;
}

.alamat-text {
    line-height: 1.5;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid #3498db;
}

/* Form Textarea */
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Responsive Table dengan Alamat */
@media (max-width: 1024px) {
    .alamat-cell {
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .alamat-cell {
        display: yes; /* Sembunyikan alamat di mobile untuk hemat space */
    }
}

/* Rekap Donasi Styles */
.terkumpul.achieved {
    color: #27ae60;
    font-weight: bold;
}

.kekurangan.surplus {
    color: #27ae60;
    font-weight: bold;
}

.kekurangan.deficit {
    color: #e74c3c;
    font-weight: bold;
}

.persentase-text {
    font-size: 0.9em;
    font-weight: 500;
    margin-left: 10px;
}

/* Status Badges */
.status-badge.terpenuhi {
    background: #27ae60;
    color: white;
}

.status-badge.hampir-terpenuhi {
    background: #f39c12;
    color: white;
}

.status-badge.sedang {
    background: #3498db;
    color: white;
}

.status-badge.kurang {
    background: #e74c3c;
    color: white;
}

.status-badge.no-target {
    background: #95a5a6;
    color: white;
}

/* Progress Bar Colors */
.progress-fill.terpenuhi {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.progress-fill.hampir-terpenuhi {
    background: linear-gradient(90deg, #f39c12, #f1c40f);
}

.progress-fill.sedang {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.progress-fill.kurang {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

/* Legend */
.legend {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #ecf0f1;
}

.legend h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1em;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.legend-item span:last-child {
    color: #7f8c8d;
}

/* Quick Action Buttons */
.btn-secondary {
    background: #95a5a6;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #7f8c8d;
    color: white;
}

/* Dashboard Progress Colors */
.progress-fill.high {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.progress-fill.medium {
    background: linear-gradient(90deg, #f39c12, #f1c40f);
}

.progress-fill.low {
    background: linear-gradient(90deg, #e74c3c, #e67e22);
}

/* Responsive Legend */
@media (max-width: 768px) {
    .legend-items {
        flex-direction: column;
        gap: 10px;
    }
    
    .legend-item {
        justify-content: flex-start;
    }
}

/* Print Styles untuk Rekap */
@media print {
    .filter-section,
    .quick-action,
    .legend {
        display: none !important;
    }
    
    .data-table {
        font-size: 10pt;
    }
    
    .progress-bar-small {
        display: none;
    }
}

/* Users Management Styles */

/* Username Info */
.username-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-user-badge {
    background: #3498db;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7em;
    cursor: help;
}

/* Role Badges */
.role-badge.admin {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.role-badge.staff {
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s;
}

@keyframes modalSlideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3em;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #f1f1f1;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
    text-align: right;
    border-top: 1px solid #ecf0f1;
}

/* Form Controls in Modal */
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.form-control:read-only {
    background-color: #f8f9fa;
    color: #6c757d;
}

.form-text {
    color: #6c757d;
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
        text-align: center;
    }
    
    .modal-footer button {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .modal-footer button:last-child {
        margin-bottom: 0;
    }
}

/* Small form improvements */
.form small {
    color: #6c757d;
    font-size: 0.85em;
}

/* Action buttons improvements */
.action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Print styles */
@media print {
    .card:first-child,
    .info-card,
    .action-buttons {
        display: none !important;
    }
}

/* Staff Dashboard Improvements */

/* Recent Table dengan Alamat */
.recent-table .alamat-cell {
    max-width: 150px;
    word-wrap: break-word;
    font-size: 0.9em;
    color: #666;
}

/* Kategori Badge di Table */
.kategori-badge {
    background: #3498db;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
}

/* Jumlah Styles */
.jumlah.uang {
    color: #27ae60;
    font-weight: bold;
    font-size: 0.9em;
}

.jumlah.barang {
    color: #e67e22;
    font-weight: bold;
    font-size: 0.9em;
}

/* Status Badge */
.status-badge.success {
    background: #27ae60;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
}

/* Recent Table Responsive */
@media (max-width: 1024px) {
    .recent-table .alamat-cell {
        max-width: 120px;
    }
}

@media (max-width: 768px) {
    .recent-table {
        font-size: 0.85em;
    }
    
    .recent-table .alamat-cell {
        display: yes; /* Sembunyikan alamat di mobile */
    }
    
    .recent-table th:nth-child(3),
    .recent-table td:nth-child(3) {
        display: none;
    }
}

@media (max-width: 480px) {
    .recent-table {
        font-size: 0.8em;
    }
    
    .recent-table th,
    .recent-table td {
        padding: 6px 4px;
    }
    
    .kategori-badge {
        font-size: 0.7em;
        padding: 2px 6px;
    }
    
    .status-badge.success {
        font-size: 0.7em;
        padding: 2px 6px;
    }
}

/* Quick Stats Improvement */
.quick-stats .stat-info h3 {
    font-size: 1.3em;
}

/* Progress Section Responsive */
@media (max-width: 768px) {
    .progress-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-card {
        padding: 15px;
    }
    
    .progress-header {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

/* Action Buttons Responsive */
@media (max-width: 480px) {
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .action-btn {
        padding: 15px 10px;
    }
    
    .action-icon {
        font-size: 2em;
    }
    
    .action-title {
        font-size: 1em;
    }
    
    .action-desc {
        font-size: 0.8em;
    }
}

/* Action Section */
.action-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.search-section {
    flex: 1;
}

.export-section {
    flex-shrink: 0;
}

/* Export Button */
.btn-export {
    background: #27ae60;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s;
    white-space: nowrap;
}

.btn-export:hover {
    background: #219a52;
    color: white;
}

/* Input By Styling */
.input-by.self {
    color: #3498db;
    font-weight: 600;
}

.input-by.other {
    color: #7f8c8d;
}

.you-badge {
    background: #3498db;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7em;
    margin-left: 5px;
}

/* Responsive Action Section */
@media (max-width: 768px) {
    .action-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .export-section {
        align-self: stretch;
    }
    
    .btn-export {
        display: block;
        text-align: center;
    }
}

/* Table Responsive Improvements */
@media (max-width: 1024px) {
    .data-table {
        min-width: 900px;
    }
}

@media (max-width: 768px) {
    .data-table {
        min-width: 800px;
    }
    
    .data-table th:nth-child(8),
    .data-table td:nth-child(8) {
        display: none;
    }
}

@media (max-width: 480px) {
    .data-table {
        min-width: 700px;
    }
    
    .data-table th:nth-child(7),
    .data-table td:nth-child(7),
    .data-table th:nth-child(8),
    .data-table td:nth-child(8) {
        display: none;
    }
}

/* Table Responsive */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.data-table th {
    background: #34495e;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #2c3e50;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ecf0f1;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* Kategori Badge */
.kategori-badge {
    background: #3498db;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
}

/* Jumlah Styles */
.jumlah.uang {
    color: #27ae60;
    font-weight: bold;
}

.jumlah.barang {
    color: #e67e22;
    font-weight: bold;
}

/* Text Alignment */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* Alamat Cell */
.alamat-cell {
    max-width: 250px;
    word-wrap: break-word;
    line-height: 1.4;
}

/* Responsive untuk Mobile */
@media (max-width: 768px) {
    .data-table {
        min-width: 700px;
        font-size: 0.9em;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }
    
    .alamat-cell {
        max-width: 200px;
    }
    
    .kategori-badge {
        padding: 4px 8px;
        font-size: 0.8em;
    }
    
    .summary-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .data-table {
        min-width: 600px;
        font-size: 0.85em;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }
    
    .alamat-cell {
        max-width: 150px;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        gap: 3px;
    }
    
    .page-link {
        padding: 6px 8px;
        min-width: 35px;
        font-size: 0.9em;
    }
    
    .page-link.first,
    .page-link.last {
        display: none;
    }
}

/* Scrollbar Styling */
.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Search Section */
.search-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.search-form {
    margin-bottom: 15px;
}

.search-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.search-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #2980b9;
}

.clear-search {
    background: #e74c3c;
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.clear-search:hover {
    background: #c0392b;
}

.search-info {
    background: #e8f4fd;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.search-info p {
    margin: 5px 0;
    color: #2c3e50;
}

/* Responsive Search */
@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-input {
        width: 100%;
    }
    
    .search-btn,
    .clear-search {
        width: 100%;
        text-align: center;
    }
}

/* No Data States */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.no-data p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

/* Summary Stats */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.summary-icon {
    font-size: 2em;
}

.summary-info h3 {
    margin: 0;
    font-size: 1.5em;
    color: #2c3e50;
}

.summary-info p {
    margin: 5px 0 0 0;
    color: #7f8c8d;
    font-size: 0.9em;
}

/* Target Donasi Specific Styles */

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.card-header h3 {
    margin: 0;
    color: #2c3e50;
}

.total-info {
    background: #3498db;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 500;
}

/* Tahun Header */
.tahun-header {
    background: linear-gradient(135deg, #34495e, #2c3e50) !important;
    color: white;
}

.tahun-header td {
    padding: 12px 15px;
    font-size: 1.1em;
}

/* Target Input Group */
.target-input-group {
    display: flex;
    gap: 5px;
    align-items: center;
}

.target-input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: right;
}

.target-input:focus {
    border-color: #3498db;
    outline: none;
}

.btn-update {
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-update:hover {
    background: #219a52;
}

/* Inline Form */
.inline-form {
    margin: 0;
}

/* Kategori Name */
.kategori-name {
    font-weight: 500;
    color: #2c3e50;
}

.used-badge {
    background: #f39c12;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7em;
    margin-left: 5px;
    cursor: help;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.btn-disabled {
    background: #bdc3c7;
    color: #7f8c8d;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    cursor: not-allowed;
    display: inline-block;
}

/* Info Card */
.info-card {
    background: #e8f4fd;
    border: 1px solid #3498db;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.info-card h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.info-card ul {
    margin: 0;
    padding-left: 20px;
    color: #34495e;
}

.info-card li {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Error Message */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    font-weight: 500;
}

/* No Data */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.no-data p {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .target-input-group {
        flex-direction: column;
        gap: 5px;
    }
    
    .target-input {
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 2px;
    }
    
    .btn-delete,
    .btn-disabled {
        display: block;
        text-align: center;
        padding: 6px 8px;
        font-size: 0.75em;
    }
}

@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
    }
    
    .tahun-header td {
        padding: 10px;
        font-size: 1em;
    }
    
    .used-badge {
        display: block;
        margin: 5px 0 0 0;
        width: fit-content;
    }
}

/*============================================= */
/* Table Responsive - All Columns Visible */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; /* Optimized for mobile with all columns */
}

.data-table th {
    background: #34495e;
    color: white;
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 0.9em;
    white-space: nowrap;
}

.data-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 0.9em;
    vertical-align: top;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* Column Specific Styles */
.donatur-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95em;
    line-height: 1.3;
}

.alamat-cell {
    max-width: 200px;
    min-width: 150px;
}

.alamat-text {
    word-wrap: break-word;
    line-height: 1.4;
    font-size: 0.85em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Kategori Badge */
.kategori-badge {
    background: #3498db;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    min-width: 60px;
}

/* Jumlah Styles */
.jumlah.uang {
    color: #27ae60;
    font-weight: bold;
    font-size: 0.9em;
}

.jumlah.barang {
    color: #e67e22;
    font-weight: bold;
    font-size: 0.9em;
}

/* Text Alignment */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* Mobile Hint */
.mobile-hint {
    display: none;
    text-align: center;
    color: #7f8c8d;
    font-size: 0.85em;
    margin-bottom: 15px;
    padding: 10px;
    background: #e8f4fd;
    border-radius: 6px;
    border: 1px solid #3498db;
}

/* Responsive Breakpoints - ALL COLUMNS VISIBLE */
@media (max-width: 1024px) {
    .data-table {
        min-width: 650px;
    }
    
    .data-table th {
        padding: 12px 8px;
        font-size: 0.85em;
    }
    
    .data-table td {
        padding: 10px 8px;
        font-size: 0.85em;
    }
    
    .alamat-cell {
        max-width: 180px;
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .mobile-hint {
        display: block;
    }
    
    .data-table {
        min-width: 600px;
    }
    
    .data-table th {
        padding: 10px 6px;
        font-size: 0.8em;
    }
    
    .data-table td {
        padding: 8px 6px;
        font-size: 0.8em;
    }
    
    .alamat-cell {
        max-width: 150px;
        min-width: 100px;
    }
    
    .alamat-text {
        font-size: 0.8em;
        -webkit-line-clamp: 2;
    }
    
    .donatur-name {
        font-size: 0.85em;
    }
    
    .kategori-badge {
        padding: 4px 8px;
        font-size: 0.75em;
        min-width: 50px;
    }
    
    .summary-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .data-table {
        min-width: 550px;
    }
    
    .data-table th {
        padding: 8px 4px;
        font-size: 0.75em;
    }
    
    .data-table td {
        padding: 6px 4px;
        font-size: 0.75em;
    }
    
    .alamat-cell {
        max-width: 120px;
        min-width: 80px;
    }
    
    .alamat-text {
        font-size: 0.75em;
        -webkit-line-clamp: 2;
    }
    
    .kategori-badge {
        padding: 3px 6px;
        font-size: 0.7em;
        min-width: 45px;
    }
    
    .jumlah.uang,
    .jumlah.barang {
        font-size: 0.8em;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        gap: 2px;
    }
    
    .page-link {
        padding: 6px 8px;
        min-width: 35px;
        font-size: 0.85em;
    }
    
    .page-link.first,
    .page-link.last {
        display: none;
    }
}

/* Scrollbar Styling */
.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Print Styles */
@media print {
    .table-responsive {
        overflow: visible;
    }
    
    .data-table {
        min-width: auto;
        width: 100%;
    }
    
    .mobile-hint {
        display: none;
    }
}
