/* css/style.css - Tora City Court Management System */
:root {
    --primary: #1a3c6e;
    --primary-dark: #0f2548;
    --secondary: #c8a951;
    --accent: #e63946;
    --light: #f4f6fb;
    --white: #ffffff;
    --text: #2d3436;
    --text-light: #636e72;
    --border: #dfe6e9;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #d63031;
    --info: #0984e3;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
}

/* ===== NAVBAR ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    text-decoration: none;
}

.nav-logo img { height: 50px; }
.nav-logo-text h1 { color: var(--white); font-size: 18px; font-weight: 700; }
.nav-logo-text p { color: var(--secondary); font-size: 11px; letter-spacing: 1px; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover, .nav-links a.active {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

.nav-links .btn-login {
    background: var(--secondary);
    color: var(--primary-dark);
    font-weight: 700;
    padding: 8px 20px;
}

.nav-links .btn-login:hover { background: #e6b800; }

.lang-select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 25px; height: 2px; background: white; border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #2d6a9f 100%);
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="40" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="80" r="60" fill="rgba(255,255,255,0.03)"/></svg>');
}

.hero-content { position: relative; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 3em; font-weight: 800; margin-bottom: 15px; line-height: 1.2; }
.hero h1 span { color: var(--secondary); }
.hero p { font-size: 1.2em; opacity: 0.85; margin-bottom: 30px; }

.hero-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: var(--transition); }
.btn-primary { background: var(--secondary); color: var(--primary-dark); }
.btn-primary:hover { background: #e6b800; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(200,169,81,0.4); }
.btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #c0392b; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #00a381; }
.btn-info { background: var(--info); color: white; }
.btn-info:hover { background: #0773c5; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ===== SECTIONS ===== */
.section { padding: 80px 20px; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.2em; color: var(--primary); font-weight: 700; margin-bottom: 10px; }
.section-title p { color: var(--text-light); font-size: 1.05em; }
.section-title .line { width: 60px; height: 4px; background: var(--secondary); margin: 15px auto 0; border-radius: 2px; }

.container { max-width: 1200px; margin: 0 auto; }

/* ===== CARDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }

.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.card-icon { background: linear-gradient(135deg, var(--primary), var(--info)); height: 80px; display: flex; align-items: center; justify-content: center; font-size: 2.5em; color: white; }
.card-body { padding: 25px; }
.card-body h3 { font-size: 1.2em; color: var(--primary); margin-bottom: 10px; }
.card-body p { color: var(--text-light); font-size: 0.95em; }

/* ===== NEWS POSTS ===== */
.post-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; }
.post-card img { width: 100%; height: 200px; object-fit: cover; }
.post-card-body { padding: 20px; }
.post-card-body h3 { color: var(--primary); margin-bottom: 8px; }
.post-meta { color: var(--text-light); font-size: 12px; margin-bottom: 10px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }

/* ===== STATS ===== */
.stats-section { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: white; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; text-align: center; }
.stat-item { padding: 30px 20px; }
.stat-num { font-size: 3em; font-weight: 800; color: var(--secondary); }
.stat-label { font-size: 0.9em; opacity: 0.8; margin-top: 5px; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-text h2 { font-size: 2em; color: var(--primary); margin-bottom: 15px; }
.about-text p { color: var(--text-light); margin-bottom: 15px; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.contact-info-item { display: flex; gap: 15px; margin-bottom: 25px; }
.contact-icon { width: 50px; height: 50px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.3em; flex-shrink: 0; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--text); }
.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
    outline: none;
    background: white;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,60,110,0.1); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 120px; }

.form-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 35px;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== LOGIN ===== */
.login-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.login-card { background: white; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); padding: 40px; width: 100%; max-width: 420px; }
.login-logo { text-align: center; margin-bottom: 25px; }
.login-logo i { font-size: 3em; color: var(--primary); }
.login-logo h2 { color: var(--primary); margin-top: 10px; }

/* ===== DASHBOARD ===== */
.dashboard-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--primary-dark), var(--primary));
    color: white;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-logo { padding: 25px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); text-align: center; }
.sidebar-logo h3 { font-size: 16px; color: var(--secondary); }
.sidebar-logo p { font-size: 11px; opacity: 0.7; margin-top: 3px; }

.sidebar-user { padding: 20px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-user .avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--secondary); display: flex; align-items: center; justify-content: center; font-size: 1.5em; margin: 0 auto 10px; color: var(--primary-dark); font-weight: bold; }
.sidebar-user h4 { font-size: 14px; }
.sidebar-user span { font-size: 11px; opacity: 0.7; background: rgba(255,255,255,0.15); padding: 2px 8px; border-radius: 10px; display: inline-block; margin-top: 4px; }

.sidebar-nav { padding: 15px 0; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.8); text-decoration: none; padding: 12px 20px; font-size: 14px; transition: var(--transition); border-left: 3px solid transparent; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,0.1); color: white; border-left-color: var(--secondary); }
.sidebar-nav a i { width: 20px; text-align: center; }
.sidebar-section { padding: 10px 20px 5px; font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.5; }

.main-content { flex: 1; padding: 30px; overflow-x: auto; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.page-header h2 { color: var(--primary); font-size: 1.6em; }

/* ===== DATA TABLE ===== */
.table-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.table-header h3 { color: var(--primary); }

table { width: 100%; border-collapse: collapse; }
th { background: var(--primary); color: white; padding: 12px 15px; text-align: left; font-size: 13px; font-weight: 600; }
td { padding: 12px 15px; border-bottom: 1px solid var(--border); font-size: 14px; }
tr:hover td { background: var(--light); }
tr:last-child td { border-bottom: none; }

/* ===== BADGES ===== */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-primary { background: #cce5ff; color: #004085; }
.badge-secondary { background: #e2e3e5; color: #383d41; }

/* ===== ALERTS ===== */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #d4edda; border-left: 4px solid var(--success); color: #155724; }
.alert-danger { background: #f8d7da; border-left: 4px solid var(--danger); color: #721c24; }
.alert-warning { background: #fff3cd; border-left: 4px solid var(--warning); color: #856404; }
.alert-info { background: #d1ecf1; border-left: 4px solid var(--info); color: #0c5460; }

/* ===== SEARCH ===== */
.search-box { display: flex; gap: 10px; }
.search-box input { flex: 1; }

/* ===== DASHBOARD STATS ===== */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.dash-stat-card { background: white; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 15px; border-left: 4px solid var(--primary); }
.dash-stat-card.green { border-left-color: var(--success); }
.dash-stat-card.yellow { border-left-color: var(--warning); }
.dash-stat-card.red { border-left-color: var(--danger); }
.dash-stat-icon { width: 50px; height: 50px; border-radius: 50%; background: var(--light); display: flex; align-items: center; justify-content: center; font-size: 1.4em; color: var(--primary); }
.dash-stat-info h3 { font-size: 1.8em; color: var(--primary); font-weight: 700; }
.dash-stat-info p { font-size: 12px; color: var(--text-light); }

/* ===== MODAL ===== */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 2000; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal { background: white; border-radius: 12px; padding: 35px; max-width: 550px; width: 90%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.modal-header h3 { color: var(--primary); }
.modal-close { background: none; border: none; font-size: 1.5em; cursor: pointer; color: var(--text-light); }
.modal-close:hover { color: var(--danger); }

/* ===== FOOTER ===== */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; padding: 60px 20px 40px; max-width: 1200px; margin: 0 auto; }
.footer h4 { color: var(--secondary); margin-bottom: 15px; font-size: 1.05em; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; transition: var(--transition); }
.footer ul li a:hover { color: var(--secondary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); text-align: center; padding: 20px; font-size: 13px; opacity: 0.6; }

/* ===== BREADCRUMB ===== */
.breadcrumb { background: white; padding: 12px 30px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-light); }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb span { margin: 0 8px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-img { order: -1; }
}

@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary-dark); padding: 15px; gap: 5px; }
    .nav-links.active { display: flex; }
    .navbar { position: relative; }
    .hamburger { display: flex; }
    .hero h1 { font-size: 2em; }
    .dashboard-layout { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: relative; }
    .main-content { padding: 20px; }
    .page-header { flex-direction: column; gap: 15px; align-items: flex-start; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== TRANSITIONS ===== */
.fade-in { animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Print */
@media print { .sidebar, .navbar, .btn, .no-print { display: none !important; } .main-content { padding: 0; } }
