/* PSB Website Custom Styles */
/* Palet Warna PSB:
 * Navy Blue: #1C3D5A - Kepercayaan & Stabilitas
 * Dark Green: #2F5D50 - Islami & Keberkahan  
 * Matte Gold: #C4A14E - Kejayaan & Saudagar
 */

/* Hero Gradient - Updated with PSB Colors */
.hero-gradient {
    background: linear-gradient(135deg, #1C3D5A 0%, #2F5D50 50%, #1C3D5A 100%);
}

/* Navigation Shadow */
.nav-shadow {
    box-shadow: 0 2px 10px rgba(28, 61, 90, 0.1);
}

/* PSB Color Utilities */
.bg-psb-navy {
    background-color: #1C3D5A;
}

.bg-psb-green {
    background-color: #2F5D50;
}

.bg-psb-gold {
    background-color: #C4A14E;
}

.text-psb-navy {
    color: #1C3D5A;
}

.text-psb-green {
    color: #2F5D50;
}

.text-psb-gold {
    color: #C4A14E;
}

.border-psb-gold {
    border-color: #C4A14E;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(28, 61, 90, 0.15), 0 10px 10px -5px rgba(28, 61, 90, 0.1);
}

/* Islamic Pattern Background */
.islamic-pattern {
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%231C3D5A" fill-opacity="0.03"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

/* Elegant Divider */
.elegant-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #C4A14E, transparent);
}

/* Line Clamp Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Button Animations */
.btn-primary {
    background: #1C3D5A;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #2F5D50;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(28, 61, 90, 0.2);
}

.btn-gold {
    background: #C4A14E;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: #B39145;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(196, 161, 78, 0.3);
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.alert-info {
    background-color: #e0f2fe;
    border: 1px solid #7dd3fc;
    color: #1C3D5A;
}

.alert-warning {
    background-color: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #1C3D5A;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-psb {
    background-color: rgba(28, 61, 90, 0.1);
    color: #1C3D5A;
    border: 1px solid rgba(28, 61, 90, 0.2);
}

.badge-green {
    background-color: rgba(47, 93, 80, 0.1);
    color: #2F5D50;
    border: 1px solid rgba(47, 93, 80, 0.2);
}

.badge-gold {
    background-color: rgba(196, 161, 78, 0.1);
    color: #C4A14E;
    border: 1px solid rgba(196, 161, 78, 0.2);
}

/* Image Styles */
.img-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.img-contain {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #1C3D5A;
    box-shadow: 0 0 0 3px rgba(28, 61, 90, 0.1);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background-color: #f9fafb;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #1C3D5A;
    border-bottom: 2px solid #e5e7eb;
}

.table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.table tbody tr:hover {
    background-color: rgba(28, 61, 90, 0.02);
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #374151;
    text-decoration: none;
}

.pagination a:hover {
    background-color: #f3f4f6;
    border-color: #1C3D5A;
}

.pagination .active {
    background-color: #1C3D5A;
    color: white;
    border-color: #1C3D5A;
}

/* Stats Card */
.stat-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(28, 61, 90, 0.1);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1C3D5A;
}

.stat-label {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 2rem;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #C4A14E, #1C3D5A);
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #C4A14E;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #e5e7eb;
}

/* Islamic Decorative Elements */
.bismillah-text {
    font-family: 'Traditional Arabic', 'Arabic Typesetting', serif;
    font-size: 1.5rem;
    color: #C4A14E;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
    
    .desktop-menu {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none;
    }
    
    .desktop-menu {
        display: block;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color - PSB Brand */
::selection {
    background-color: #C4A14E;
    color: white;
}

/* Focus Visible - PSB Navy */
*:focus-visible {
    outline: 2px solid #1C3D5A;
    outline-offset: 2px;
}

/* Professional Shadows */
.shadow-psb {
    box-shadow: 0 4px 6px -1px rgba(28, 61, 90, 0.1), 0 2px 4px -1px rgba(28, 61, 90, 0.06);
}

.shadow-psb-lg {
    box-shadow: 0 10px 15px -3px rgba(28, 61, 90, 0.1), 0 4px 6px -2px rgba(28, 61, 90, 0.05);
}

/* Gradient Backgrounds */
.gradient-psb {
    background: linear-gradient(135deg, #1C3D5A 0%, #2F5D50 100%);
}

.gradient-psb-light {
    background: linear-gradient(135deg, rgba(28, 61, 90, 0.05) 0%, rgba(47, 93, 80, 0.05) 100%);
}


/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Line Clamp Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Button Animations */
.btn-primary {
    background: #1e3a8a;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.alert-info {
    background-color: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

.alert-warning {
    background-color: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #1e3a8a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-blue {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-green {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-red {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-yellow {
    background-color: #fef3c7;
    color: #92400e;
}

/* Image Styles */
.img-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.img-contain {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background-color: #f9fafb;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.table tbody tr:hover {
    background-color: #f9fafb;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #374151;
    text-decoration: none;
}

.pagination a:hover {
    background-color: #f3f4f6;
}

.pagination .active {
    background-color: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

/* Stats Card */
.stat-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1e3a8a;
}

.stat-label {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 2rem;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #1e3a8a;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #e5e7eb;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
    
    .desktop-menu {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none;
    }
    
    .desktop-menu {
        display: block;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: #3b82f6;
    color: white;
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
