/* assets/css/style.css - E-PUSARA Full CSS */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--warna-utama, #ffffff);
    color: #333333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: var(--warna-teks, #0066cc);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 24px;
}

.logo h1 a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo h1 a:hover {
    opacity: 0.8;
}

/* Navigation */
nav {
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-menu li a:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Main Content */
main {
    flex: 1;
    padding: 30px 0;
}

/* Footer */
footer {
    background-color: #f5f5f5;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    font-size: 12px;
    color: #666;
}

/* Front Page */
.front-page {
    width: 100%;
}

/* Slideshow */
.slideshow-container {
    position: relative;
    max-width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 30px;
}

.slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 30px 20px 20px;
}

.slide-caption h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.slide-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.slide-controls button {
    background: rgba(255,255,255,0.5);
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.slide-controls button:hover {
    background: rgba(255,255,255,0.8);
}

.slide-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background: white;
}

/* Animated Text */
.animated-text-container {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--warna-teks, #0066cc) 0%, #004080 100%);
    color: white;
    margin-bottom: 30px;
}

.animated-text {
    font-size: 28px;
    font-weight: 300;
    transition: opacity 0.5s ease;
    min-height: 60px;
}

/* Search Section */
.search-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
    margin-bottom: 30px;
}

.search-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--warna-teks, #0066cc);
}

.btn-search {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--warna-teks, #0066cc);
    color: white;
    text-decoration: none;
    font-size: 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-search:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,102,204,0.3);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.grid-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.grid-item h2 {
    color: var(--warna-teks, #0066cc);
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.announcement-item, .nota-item {
    margin-bottom: 15px;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.announcement-item h3 {
    font-size: 16px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.new-badge {
    background-color: #ff4444;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: uppercase;
}

.read-more {
    display: inline-block;
    color: var(--warna-teks, #0066cc);
    text-decoration: none;
    font-size: 12px;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.read-more:hover {
    text-decoration: underline;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-box h2 {
    text-align: center;
    color: var(--warna-teks, #0066cc);
    margin-bottom: 20px;
}

.login-form .form-group {
    margin-bottom: 15px;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

.login-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: var(--warna-teks, #0066cc);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: #004080;
}

.login-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    font-size: 12px;
}

/* Alerts */
.alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Dashboard */
.dashboard h1 {
    color: var(--warna-teks, #0066cc);
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--warna-teks, #0066cc);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.data-table thead {
    background-color: var(--warna-teks, #0066cc);
    color: white;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    font-size: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.data-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Forms */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-container h1 {
    color: var(--warna-teks, #0066cc);
    margin-bottom: 20px;
}

.data-form .form-group {
    margin-bottom: 20px;
}

.data-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
}

.data-form input[type="text"],
.data-form input[type="date"],
.data-form input[type="number"],
.data-form select,
.data-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.data-form input[type="file"] {
    padding: 10px;
    border: 1px dashed #ddd;
    border-radius: 4px;
    width: 100%;
}

.data-form small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 11px;
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox input {
    width: auto;
    margin-right: 10px;
}

.btn-submit {
    padding: 12px 30px;
    background-color: var(--warna-teks, #0066cc);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #004080;
}

.btn-cancel {
    display: inline-block;
    padding: 12px 30px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 10px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn-cancel:hover {
    background-color: #545b62;
}

.btn-small {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--warna-teks, #0066cc);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 11px;
    margin-right: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-small:hover {
    background-color: #004080;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Search Page */
.search-page h1 {
    color: var(--warna-teks, #0066cc);
    margin-bottom: 20px;
}

.search-instructions {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid var(--warna-teks, #0066cc);
}

.search-form-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.search-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.search-results h2 {
    color: var(--warna-teks, #0066cc);
    margin-bottom: 15px;
    font-size: 18px;
}

.no-results {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 8px;
    color: #666;
}

/* Admin Section */
.admin-section {
    width: 100%;
}

.admin-section h1 {
    color: var(--warna-teks, #0066cc);
    margin-bottom: 30px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.setting-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.setting-card h2 {
    color: var(--warna-teks, #0066cc);
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.theme-list {
    margin-bottom: 20px;
}

.theme-option {
    margin-bottom: 10px;
}

.theme-preview {
    margin-left: 10px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
}

.current-image {
    margin-top: 10px;
}

.current-image img {
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Map Drawing */
.map-drawing {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    background: #f9f9f9;
}

.map-container {
    position: relative;
    border: 2px dashed #ccc;
    margin: 10px 0;
    cursor: crosshair;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* PC font: 12px, Mobile font: 10px */
    body {
        font-size: 10px;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--warna-teks, #0066cc);
        flex-direction: column;
        width: 200px;
        padding: 10px;
        border-radius: 4px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        display: block;
        padding: 10px;
    }
    
    .slideshow-container {
        height: 250px;
    }
    
    .slide-caption h2 {
        font-size: 16px;
    }
    
    .slide-caption p {
        font-size: 10px;
    }
    
    .animated-text {
        font-size: 18px;
        min-height: 40px;
    }
    
    .search-section h2 {
        font-size: 16px;
    }
    
    .btn-search {
        padding: 10px 25px;
        font-size: 12px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px;
        font-size: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .login-container {
        padding: 10px;
    }
    
    .login-box {
        padding: 20px;
    }
    
    .btn-submit,
    .btn-cancel {
        padding: 8px 20px;
        font-size: 12px;
    }
    
    .btn-small {
        padding: 3px 6px;
        font-size: 9px;
    }
    
    .stat-number {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .slideshow-container {
        height: 180px;
    }
    
    .slide-controls button {
        padding: 5px 10px;
        font-size: 14px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .animated-text {
        font-size: 14px;
    }
    
    .grid-item h2 {
        font-size: 14px;
    }
    
    .announcement-item h3 {
        font-size: 12px;
    }
}

/* Hover Animations & Transitions */
a, button {
    transition: all 0.3s ease;
}

.stat-card,
.grid-item,
.btn-search {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover,
.grid-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-search:hover {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--warna-teks, #0066cc);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
    padding: 5px 0;
}

.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu li a {
    padding: 10px 15px;
    display: block;
    color: white;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.dropdown-menu li a:hover {
    background-color: rgba(255,255,255,0.2);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* User menu alignment */
.user-menu .dropdown-menu {
    left: auto;
    right: 0;
}

/* Active menu item */
.nav-menu a.active {
    background-color: rgba(255,255,255,0.3);
    font-weight: bold;
}

/* Login button */
.login-btn {
    background-color: #28a745;
    border-radius: 4px;
    padding: 5px 15px !important;
}

.login-btn:hover {
    background-color: #218838;
}

/* Mobile responsive for dropdowns */
@media (max-width: 768px) {
    .dropdown {
        position: static;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        background: rgba(0,0,0,0.1);
        padding-left: 20px;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-toggle::after {
        content: ' ▼';
        font-size: 10px;
    }
    
    .user-menu .dropdown-menu {
        right: auto;
        left: 0;
    }
}



