/* Frontend CSS - SIPADU */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Category Cards */
.kategori-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
}

.kategori-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.kategori-card.active {
    border: 3px solid var(--card-color, #667eea);
    transform: translateY(-5px);
}

.kategori-card .card-body {
    padding: 30px 20px;
}

.kategori-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--card-color, #667eea), var(--card-color, #764ba2));
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.kategori-icon i {
    font-size: 28px;
    color: white;
}

.kategori-card .card-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.kategori-card .card-text {
    font-size: 0.85rem;
    line-height: 1.5;
}

.doc-count {
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
}

/* Document Section */
.dokumen-section {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dokumen-section .card-header {
    border-radius: 15px 15px 0 0;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.dokumen-section .card-body {
    padding: 25px;
}

/* Table */
.table {
    margin-bottom: 0;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    padding: 12px 15px;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    padding: 15px;
    vertical-align: middle;
}

.table tbody tr {
    transition: background 0.2s ease;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
}

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

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Loading Spinner */
.fa-spinner {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .kategori-card .card-body {
        padding: 20px 15px;
    }
    
    .kategori-icon {
        width: 60px;
        height: 60px;
    }
    
    .kategori-icon i {
        font-size: 24px;
    }
    
    .kategori-card .card-title {
        font-size: 1rem;
    }
}

/* Empty State */
#noDokumen {
    color: #6c757d;
}

#noDokumen i {
    opacity: 0.5;
}

/* Scroll Animation */
html {
    scroll-behavior: smooth;
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box .input-group {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.search-box .input-group-text {
    border: none;
    padding-left: 20px;
}

.search-box .form-control {
    border: none;
    padding: 15px 10px;
    font-size: 1rem;
}

.search-box .form-control:focus {
    box-shadow: none;
}

.search-box .btn {
    border-radius: 0 50px 50px 0;
    padding: 15px 30px;
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: #f8f9fa;
}

.search-item mark {
    background: #fff3cd;
    padding: 0 2px;
    border-radius: 3px;
}

.search-footer {
    padding: 10px 20px;
    background: #f8f9fa;
    text-align: center;
    font-size: 0.85rem;
    color: #6c757d;
    border-radius: 0 0 15px 15px;
}

/* Responsive Search */
@media (max-width: 768px) {
    .search-box .btn {
        padding: 15px 20px;
    }
    
    .search-box .form-control {
        padding: 12px 10px;
    }
}
