/* assets/css/style.css */
/* LAPOR SPI USN KOLAKA - Main Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0b2d5c; /* Navy Blue Utama */
    --secondary-color: #1e4b85; /* Biru USN */
    --accent-color: #f1c40f; /* Kuning Aksen */
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --text-color: #333333;
    --text-muted: #6c757d;
    --border-color: #e5e7eb;
    
    /* Status Colors */
    --status-baru: #0d6efd;
    --status-diverifikasi: #0dcaf0;
    --status-perlu-info: #fd7e14;
    --status-diproses: #0d6efd;
    --status-ditindaklanjuti: #20c997;
    --status-selesai: #198754;
    --status-ditolak: #6c757d;
    
    /* Layout Variables */
    --sidebar-width: 260px;
    --header-height: 60px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
}

/* Institutional Design Elements */
.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-warning {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #212529;
}

.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 75, 133, 0.15);
}

/* Login Page Specific */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
}

.login-card {
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header img {
    max-width: 80px;
    margin-bottom: 1rem;
}

.login-header h4 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.login-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Admin Dashboard Layout */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* Sidebar */
#sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: var(--primary-color);
    color: #fff;
    transition: all 0.3s;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
}

#sidebar.active {
    margin-left: calc(-1 * var(--sidebar-width));
}

#sidebar .sidebar-header {
    padding: 20px;
    background: var(--secondary-color);
    text-align: center;
}

#sidebar .sidebar-header img {
    max-width: 50px;
    margin-bottom: 10px;
}

#sidebar .sidebar-header h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 12px 20px;
    font-size: 0.95rem;
    display: block;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: 0.2s;
}

#sidebar ul li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

#sidebar ul li.active > a {
    color: #fff;
    background: var(--secondary-color);
    border-left: 4px solid var(--accent-color);
}

#sidebar ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

#sidebar .sidebar-heading {
    padding: 10px 20px 5px 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Page Content */
#content {
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    transition: all 0.3s;
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
}

#content.active {
    width: 100%;
}

/* Top Navbar */
.navbar-top {
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.btn-sidebar-toggle {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: var(--text-color);
    cursor: pointer;
}

.btn-sidebar-toggle:hover {
    color: var(--primary-color);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-user .user-info {
    text-align: right;
    line-height: 1.2;
}

.navbar-user .user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.navbar-user .user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.content-wrapper {
    padding: 20px;
}

/* Page Title Area */
.page-title-box {
    margin-bottom: 1.5rem;
}

.page-title-box h4 {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--primary-color);
}

.page-title-box .breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
    font-size: 0.85rem;
}

/* Table Customization */
.table-responsive {
    border-radius: 8px;
}

.table th {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: 600;
    border-bottom-width: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(11, 45, 92, 0.02);
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    #sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        width: 100%;
    }
    #content.active {
        width: 100%;
    }
}

/* Migrated Inline Styles */
.hover-lift { transition: transform 0.2s, box-shadow 0.2s; }
.hover-lift:hover { transform: translateY(-5px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important; }
.timeline-item:last-child { border-bottom: none !important; padding-bottom: 0 !important; margin-bottom: 0 !important; }
.hover-white:hover { color: #fff !important; padding-left: 5px; transition: 0.2s; }
.navbar-publik { background-color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); padding: 10px 0; }
.navbar-publik .navbar-brand img { height: 50px; margin-right: 15px; }
.navbar-publik .navbar-brand .brand-text { color: var(--primary-color); font-weight: 700; line-height: 1.2; font-size: 1.1rem; }
.navbar-publik .navbar-brand .brand-subtext { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; }
.nav-publik-link { color: var(--text-color); font-weight: 500; padding: 8px 16px !important; border-radius: 4px; transition: 0.2s; }
.nav-publik-link:hover, .nav-publik-link.active { color: var(--primary-color); background-color: var(--bg-light); }
.hero-section { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); color: white; padding: 80px 0; text-align: center; }
.hero-title { font-weight: 700; font-size: 2.5rem; margin-bottom: 20px; }
.hero-subtitle { font-weight: 300; font-size: 1.2rem; opacity: 0.9; margin-bottom: 40px; }
.nav-tabs .nav-link { color: var(--text-muted); font-weight: 500; }
.nav-tabs .nav-link.active { color: var(--primary-color); font-weight: 600; border-bottom: 3px solid var(--primary-color) !important; }
