/* ===== VARIABLES & RESET ===== */
:root {
    --primary: #3498db;
    --secondary: #2c3e50;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --border: #e9ecef;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* ===== LAYOUT & CONTAINERS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--gray); }
.text-small { font-size: 0.875rem; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-success { background: var(--success); }
.btn-danger { background: var(--danger); }
.btn-warning { background: var(--warning); }
.btn-secondary { background: var(--gray); }
.btn-light { 
    background: var(--light); 
    color: var(--dark);
    border: 1px solid var(--border);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.required::after {
    content: " *";
    color: var(--danger);
}

.form-error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-input.error {
    border-color: var(--danger);
}

/* ===== TABLES ===== */
.table {
    width: 100%;
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: var(--light);
    font-weight: 600;
    color: var(--secondary);
    border-bottom: 2px solid var(--border);
}

.table tbody tr:hover {
    background: rgba(52, 152, 219, 0.05);
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius-lg);
}

/* ===== ALERTS & NOTIFICATIONS ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* ===== BADGES ===== */
.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-primary { background: #cce7ff; color: #004085; }
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-secondary { background: #e2e3e5; color: #383d41; }

/* ===== CARDS ===== */
.card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    margin: 0;
    color: var(--secondary);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--light);
    border-color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== FILE UPLOAD ===== */
.file-upload {
    border: 2px dashed var(--border);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--light);
}

.file-upload:hover {
    border-color: var(--primary);
    background: rgba(52, 152, 219, 0.05);
}

.file-upload.dragover {
    border-color: var(--primary);
    background: rgba(52, 152, 219, 0.1);
}

.preview-image {
    max-width: 200px;
    max-height: 200px;
    margin-top: 1rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--border);
    display: none;
}

.current-image {
    max-width: 200px;
    margin-top: 0.5rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--border);
}

/* ===== DASHBOARD STYLES ===== */
.dashboard-body {
    background: var(--light);
    min-height: 100vh;
}

.dashboard-main {
    padding: 2rem 0;
}

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    padding: 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.dashboard-header .nav-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    flex-wrap: wrap;
}

.header-brand h1 {
    margin: 0;
    font-size: 1.5rem;
}

.brand-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
}

.brand-link:hover {
    color: var(--light);
}

/* Main Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-name {
    font-weight: 600;
}

.user-role {
    font-size: 0.75rem;
    opacity: 0.9;
}

.logout-btn {
    background: var(--danger);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.logout-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

/* Dashboard Components */
.welcome-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.welcome-content h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    color: white;
}

.welcome-content p {
    margin: 0;
    opacity: 0.9;
}

.role-highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.welcome-illustration {
    font-size: 4rem;
    opacity: 0.8;
}

.section-title {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
    opacity: 0;
    transform: translateY(20px);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-card.admin-stat {
    border-left-color: var(--success);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-card.admin-stat .stat-icon {
    background: linear-gradient(135deg, var(--success), #27ae60);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--gray);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.menu-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(20px);
}

.menu-card:not(.coming-soon):hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    text-decoration: none;
    color: inherit;
}

.menu-card.coming-soon {
    opacity: 0.7;
    cursor: not-allowed;
}

.menu-card.admin-only {
    border-left: 4px solid var(--success);
}

.menu-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-content h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.menu-content p {
    color: var(--gray);
    font-size: 0.875rem;
    margin: 0;
}

.menu-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
}

.role-badge {
    background: var(--primary);
    color: white;
}

.status-badge {
    background: var(--warning);
    color: white;
}

.quick-actions-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: var(--light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-card:not(.coming-soon):hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.action-card.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
}

.action-card:not(.coming-soon):hover .action-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.action-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.action-content p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ===== PENGURUS SPECIFIC ===== */
.pengurus-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.no-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 0.75rem;
    border: 2px dashed var(--border);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.jabatan-badge {
    font-weight: 600;
    color: var(--secondary);
    background: var(--light);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
}

/* ===== LOGIN SPECIFIC ===== */
.login-container {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.login-header p {
    color: var(--gray);
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.login-footer small {
    color: var(--gray);
}

/* ===== PUBLIC PAGE STYLES ===== */
.public-body {
    background: var(--light);
    min-height: 100vh;
}

.public-main {
    padding: 3rem 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-illustration {
    font-size: 8rem;
    opacity: 0.8;
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

/* News Grid for Public */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-header {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.news-header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--secondary);
    font-size: 1.25rem;
    line-height: 1.4;
}

.news-date {
    color: var(--gray);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-content {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.news-content p {
    color: var(--dark);
    line-height: 1.6;
    margin: 0;
}

.news-actions {
    text-align: right;
    margin-top: auto;
}

/* Features Section */
.features-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: white;
    font-size: 2rem;
}

.feature-content h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-content p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

/* About Section */
.about-section {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    margin-top: 4rem;
    box-shadow: var(--shadow-sm);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-text p {
    color: var(--dark);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--light);
    border-radius: var(--border-radius);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray);
    font-size: 0.875rem;
}

.about-image {
    text-align: center;
    font-size: 8rem;
    color: var(--primary);
    opacity: 0.7;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.empty-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
    color: var(--gray);
    font-size: 3rem;
}

.empty-state h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 2rem;
}

/* Public Footer */
.public-footer {
    background: var(--secondary);
    color: white;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.7;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* ===== UTILITY CLASSES ===== */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.stat-card,
.menu-card,
.news-card,
.feature-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container,
    .container-sm {
        padding: 0 1rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-header .nav-container {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .user-info {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    .welcome-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .welcome-illustration {
        font-size: 3rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-illustration {
        font-size: 6rem;
        order: -1;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions,
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        font-size: 6rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section p {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .stat-card {
        padding: 1rem;
    }
    
    .menu-card {
        padding: 1.5rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 2rem 1rem;
        margin: 1rem;
    }
    
    .welcome-section {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-illustration {
        font-size: 4rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
        justify-content: center;
    }
    
    .about-section {
        padding: 2rem 1rem;
    }
    
    .about-text h2 {
        font-size: 1.75rem;
    }
}

/* Print Styles */
@media print {
    .navbar, .btn, .no-print {
        display: none !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    
    .table {
        box-shadow: none !important;
    }
}
/* ===== ERROR PAGES ===== */
.error-container {
    padding: 2rem;
}

.error-icon {
    font-size: 6rem;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== COMING SOON ===== */
.coming-soon-container {
    padding: 4rem 2rem;
    text-align: center;
}

.coming-soon-icon {
    font-size: 6rem;
    color: var(--primary);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.coming-soon-actions {
    margin-top: 2rem;
}

.progress-container {
    max-width: 400px;
    margin: 0 auto;
}

.progress {
    height: 8px;
    background: var(--light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}
/* ===== SIMPLE HEADER ===== */
.simple-header {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.simple-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.simple-header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.simple-header .logo i {
    font-size: 1.5rem;
}

/* Responsive for simple header */
@media (max-width: 768px) {
    .simple-header .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .simple-header .logo {
        justify-content: center;
    }
}
.brand-logo {
    height: 40px;
    width: auto;
    vertical-align: middle;
    margin-right: 10px;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.header-brand h1 {
    margin: 0;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .brand-logo {
        height: 32px;
    }
    
    .header-brand h1 {
        font-size: 1.2rem;
    }
}

/* ===== BERITA SPECIFIC STYLES ===== */
.news-thumbnail {
    width: 60px;
    height: 40px;
    border-radius: var(--border-radius);
    object-fit: cover;
    border: 1px solid var(--border);
}

.news-thumbnail.no-image {
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 0.875rem;
}

.news-title {
    display: block;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Enhanced action buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.action-buttons .btn {
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Improved pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.pagination-pages {
    display: flex;
    gap: 0.5rem;
}

/* Status badges */
.badge-new {
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

/* Responsive table improvements */
@media (max-width: 768px) {
    .news-thumbnail {
        width: 40px;
        height: 30px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 32px;
        height: 32px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }
}

/* ===== FORM ENHANCEMENTS ===== */
.form-check {
    margin-bottom: 1rem;
}

.form-check-input {
    margin-right: 0.5rem;
}

.form-check-label {
    font-weight: 600;
    color: var(--secondary);
}

.file-upload-area {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px dashed #dee2e6 !important;
}

.file-upload-area:hover {
    border-color: #007bff !important;
    background-color: #f8f9fa;
}

/* Quill Editor Customization */
.ql-toolbar {
    border-top: 1px solid #ccc !important;
    border-left: 1px solid #ccc !important;
    border-right: 1px solid #ccc !important;
    border-bottom: none !important;
    border-radius: 5px 5px 0 0 !important;
}

.ql-container {
    border-bottom: 1px solid #ccc !important;
    border-left: 1px solid #ccc !important;
    border-right: 1px solid #ccc !important;
    border-top: none !important;
    border-radius: 0 0 5px 5px !important;
    font-size: 14px !important;
}

.ql-editor {
    min-height: 300px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.ql-editor p {
    margin-bottom: 1rem;
}

.ql-editor h1, .ql-editor h2, .ql-editor h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Required field indicator */
.required::after {
    content: " *";
    color: #e74c3c;
}

/* Image preview styles */
.img-thumbnail {
    object-fit: contain;
    border: 2px solid var(--border);
}

/* Form actions alignment */
.form-actions.text-right {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .form-actions.text-right {
        justify-content: center;
        flex-direction: column;
    }
    
    .form-actions.text-right .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== PENGATURAN SPECIFIC STYLES ===== */
.color-picker-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.color-picker-container input[type="color"] {
    width: 60px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    cursor: pointer;
    padding: 0;
}

.color-value {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    padding: 0.5rem 1rem;
    background: var(--light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    min-width: 100px;
    text-align: center;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    z-index: 2;
}

.input-with-icon .form-input {
    padding-left: 3rem;
}

/* Required field indicator */
.required::after {
    content: " *";
    color: #e74c3c;
}

/* File upload area improvements */
.file-upload-area {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px dashed #dee2e6 !important;
}

.file-upload-area:hover {
    border-color: #007bff !important;
    background-color: #f8f9fa;
}

/* Current logo display */
.current-logo {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
}

/* Form actions alignment */
.form-actions.text-right {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .color-picker-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .form-actions.text-right {
        justify-content: center;
        flex-direction: column;
    }
    
    .form-actions.text-right .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        justify-content: center;
    }
    
    .input-with-icon i {
        left: 0.75rem;
    }
    
    .input-with-icon .form-input {
        padding-left: 2.5rem;
    }
}