@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800;900&family=Rajdhani:wght@500;600;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-dark: #03050a;
    --bg-card: rgba(18, 24, 36, 0.85);
    --bg-card-hover: rgba(30, 40, 58, 0.95);
    --input-bg: rgba(8, 12, 20, 0.92);
    
    --sheriff-yellow: #ffee00;   
    --sheriff-yellow-glow: rgba(255, 238, 0, 0.45);
    
    --sheriff-orange: #ff9f00;      
    --sheriff-orange-bright: #ff6600;
    --sheriff-orange-glow: rgba(255, 159, 0, 0.4);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.12);
    
    --danger: #ff2a2a;
    --danger-glow: rgba(255, 42, 42, 0.4);
    --success: #00e676;
    --success-glow: rgba(0, 230, 118, 0.4);
    --discord-blurple: #ff9f00;
    --discord-glow: rgba(255, 159, 0, 0.4);
}

[data-theme="light"] {
    --bg-dark: #e2e8f0;
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --input-bg: rgba(241, 245, 249, 0.95);
    
    --sheriff-yellow: #d4a000;
    --sheriff-yellow-glow: rgba(212, 160, 0, 0.3);
    
    --sheriff-orange: #e65100;
    --sheriff-orange-bright: #d84315;
    --sheriff-orange-glow: rgba(230, 81, 0, 0.3);
    
    --text-main: #0f172a;
    --text-muted: #475569;
    --glass-border: rgba(15, 23, 42, 0.14);
    
    --danger: #c62828;
    --danger-glow: rgba(198, 40, 40, 0.3);
    --success: #2e7d32;
    --success-glow: rgba(46, 125, 50, 0.3);
    --discord-blurple: #e65100;
    --discord-glow: rgba(230, 81, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', 'Inter', sans-serif;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(255, 238, 0, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(255, 159, 0, 0.06) 0%, transparent 40%);
    background-attachment: fixed;
}

.theme-switch-wrapper {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

.theme-toggle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 2px solid var(--sheriff-yellow);
    color: var(--sheriff-yellow);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--sheriff-yellow-glow);
}

.theme-toggle-btn:hover {
    transform: scale(1.12) rotate(15deg);
    border-color: var(--sheriff-orange);
    color: var(--sheriff-orange);
    box-shadow: 0 0 25px var(--sheriff-orange-glow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 6%;
    background: rgba(3, 5, 10, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.9);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--text-main);
    letter-spacing: 2px;
}

.nav-logo {
    height: 48px;
    filter: drop-shadow(0 0 10px var(--sheriff-yellow-glow));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 22px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--sheriff-yellow);
    text-shadow: 0 0 10px var(--sheriff-yellow-glow);
}

.btn-member, .btn-primary, .btn-secondary, .btn {
    padding: 12px 26px;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--sheriff-yellow), var(--sheriff-orange));
    color: #000;
    border: 1px solid var(--sheriff-yellow);
    box-shadow: 0 0 15px var(--sheriff-yellow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--sheriff-orange), var(--sheriff-orange-bright));
    box-shadow: 0 0 25px var(--sheriff-orange-glow);
    color: #000;
}

.btn-secondary {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    border-color: var(--sheriff-orange);
    color: var(--sheriff-orange);
    box-shadow: 0 0 15px var(--sheriff-orange-glow);
}

.btn-block { width: 100%; text-align: center; }

.hero {
    min-height: 85vh;
    padding: 60px 20px;
    background: linear-gradient(180deg, rgba(3, 5, 10, 0.5) 0%, var(--bg-dark) 100%), 
                url('../images/kep1.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 880px;
    padding: 50px 35px;
    background: rgba(3, 5, 10, 0.75);
    backdrop-filter: blur(16px);
    border: 2px solid var(--sheriff-yellow);
    border-radius: 20px;
    box-shadow: 0 0 40px var(--sheriff-yellow-glow);
}

[data-theme="light"] .hero-content {
    background: rgba(255, 255, 255, 0.88);
}

.hero-logo {
    height: 160px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 25px var(--sheriff-yellow-glow));
    animation: floatingLogo 4s ease-in-out infinite;
}

@keyframes floatingLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: var(--text-main);
    letter-spacing: 2px;
    text-shadow: 0 0 20px var(--sheriff-yellow-glow);
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.hero-buttons {
    margin-top: 35px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.section { padding: 80px 8%; position: relative; }
.bg-alt { background: rgba(18, 24, 36, 0.4); }

.section-title {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 45px;
    color: var(--sheriff-yellow);
    letter-spacing: 2px;
    text-shadow: 0 0 15px var(--sheriff-yellow-glow);
}

.discord-notice-box {
    max-width: 680px;
    margin: 0 auto 35px auto;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 2px solid var(--sheriff-orange);
    border-radius: 16px;
    padding: 25px 30px;
    display: flex;
    gap: 22px;
    align-items: center;
    box-shadow: 0 0 25px var(--sheriff-orange-glow);
}

.notice-icon i {
    font-size: 3.5rem;
    color: var(--sheriff-yellow);
    filter: drop-shadow(0 0 12px var(--sheriff-yellow-glow));
}

.notice-text h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--sheriff-yellow);
    font-size: 1.25rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.notice-text p {
    font-size: 0.98rem;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 15px;
}

.btn-discord {
    background: linear-gradient(135deg, var(--sheriff-orange), var(--sheriff-orange-bright));
    color: #fff !important;
    border: 1px solid var(--sheriff-orange);
    box-shadow: 0 0 15px var(--sheriff-orange-glow);
    padding: 10px 22px;
    font-size: 0.85rem;
}

.btn-discord:hover {
    background: var(--sheriff-orange-bright);
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--sheriff-orange-glow);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    padding: 35px 25px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: var(--sheriff-yellow);
    box-shadow: 0 0 22px var(--sheriff-yellow-glow);
}

.about-card i {
    font-size: 3.2rem;
    color: var(--sheriff-yellow);
    margin-bottom: 18px;
    text-shadow: 0 0 12px var(--sheriff-yellow-glow);
}

.about-card h3 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 10px;
    font-size: 1.35rem;
}

.about-card p {
    color: var(--text-muted);
    line-height: 1.65;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 14px;
    height: 185px;
    border: 1px solid var(--glass-border);
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover {
    border-color: var(--sheriff-yellow);
    box-shadow: 0 0 15px var(--sheriff-yellow-glow);
}

.gallery-item:hover img {
    transform: scale(1.12);
    filter: brightness(1.15);
}

.custom-form {
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.form-group { margin-bottom: 22px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--text-main); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--sheriff-yellow);
    box-shadow: 0 0 12px var(--sheriff-yellow-glow);
}

.status-msg {
    margin-top: 18px;
    padding: 14px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}
.status-msg.success { background: rgba(0, 230, 118, 0.15); color: var(--success); border: 1px solid var(--success); }
.status-msg.error { background: rgba(255, 42, 42, 0.15); color: var(--danger); border: 1px solid var(--danger); }

footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    background: rgba(3, 5, 10, 0.85);
}

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 2px solid var(--sheriff-yellow);
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 0 40px var(--sheriff-yellow-glow);
    text-align: center;
}

.login-logo {
    height: 110px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 18px var(--sheriff-yellow-glow));
}

.login-card h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.65rem;
    color: var(--sheriff-yellow);
    margin-bottom: 25px;
    letter-spacing: 1.5px;
}

.dashboard-body { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
    width: 270px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 100;
}

.sidebar-header {
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-header img { height: 45px; filter: drop-shadow(0 0 8px var(--sheriff-yellow-glow)); }
.sidebar-header h3 { font-family: 'Orbitron', sans-serif; color: var(--sheriff-yellow); font-size: 1.3rem; }

.sidebar-menu { list-style: none; padding: 20px 0; }
.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
}

.sidebar-menu li.active a, .sidebar-menu li a:hover {
    color: var(--sheriff-yellow);
    background: rgba(255, 238, 0, 0.08);
    border-left: 4px solid var(--sheriff-yellow);
    text-shadow: 0 0 8px var(--sheriff-yellow-glow);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info { display: flex; flex-direction: column; }
.user-info span { font-weight: bold; color: var(--text-main); }
.user-info small { color: var(--sheriff-yellow); font-weight: 700; }

.btn-logout { color: var(--danger); font-size: 1.25rem; text-decoration: none; padding: 8px; }

.main-content { flex: 1; padding: 35px; overflow-y: auto; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.tab-header { margin-bottom: 25px; border-bottom: 1px solid var(--glass-border); padding-bottom: 15px; }
.tab-header h2 { font-family: 'Orbitron', sans-serif; color: var(--sheriff-yellow); font-size: 1.8rem; display: flex; align-items: center; gap: 12px; }
.tab-header p { color: var(--text-muted); margin-top: 5px; }

.btk-layout { display: grid; grid-template-columns: 1fr 340px; gap: 25px; align-items: start; }

.search-box { position: relative; margin-bottom: 20px; }
.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sheriff-yellow);
    font-size: 1.1rem;
    pointer-events: none;
}
.search-box input {
    width: 100%;
    padding: 14px 20px 14px 48px !important;
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--sheriff-yellow);
    color: var(--text-main);
    border-radius: 12px;
    outline: none;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.search-box input:focus { border-color: var(--sheriff-orange); box-shadow: 0 0 20px var(--sheriff-orange-glow); }

.btk-items-list { max-height: 62vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.btk-item {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btk-item:hover { border-color: var(--sheriff-orange); box-shadow: 0 0 12px var(--sheriff-orange-glow); }
.btk-item-info strong { color: var(--text-main); font-size: 1.05rem; }
.btk-item-info small { color: var(--text-muted); display: block; margin-top: 3px; }

.btk-calculator-box {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    padding: 25px;
    border-radius: 16px;
    border: 2px solid var(--sheriff-yellow);
    box-shadow: 0 0 25px var(--sheriff-yellow-glow);
    position: sticky;
    top: 0;
}

.btk-calculator-box h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--sheriff-yellow);
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.calc-results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 15px; }
.res-card { background: var(--input-bg); padding: 12px; border-radius: 8px; border: 1px solid var(--glass-border); text-align: center; }
.res-card span { font-size: 0.85rem; color: var(--text-muted); display: block; }
.res-card strong { font-size: 1.2rem; color: var(--sheriff-yellow); margin-top: 4px; display: block; }

.reports-container { display: flex; flex-direction: column; gap: 15px; }
.report-card { background: var(--bg-card); backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: 12px; padding: 18px 22px; }
.report-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: 'Orbitron', sans-serif; color: var(--sheriff-yellow); font-size: 1.05rem; }
.report-body { display: none; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--glass-border); line-height: 1.7; }
.report-card.open .report-body { display: block; }

.logs-grid { display: flex; flex-direction: column; gap: 10px; }
.log-item { background: var(--bg-card); padding: 12px 18px; border-radius: 8px; border-left: 4px solid var(--sheriff-yellow); display: flex; justify-content: space-between; }

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: var(--bg-card);
    border: 2px solid var(--sheriff-yellow);
    box-shadow: 0 0 35px var(--sheriff-yellow-glow);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 550px;
    position: relative;
}

.close-modal { position: absolute; top: 15px; right: 20px; font-size: 1.8rem; color: var(--text-muted); cursor: pointer; }
.close-modal:hover { color: var(--danger); }

@media (max-width: 900px) {
    .dashboard-body { flex-direction: column; height: auto; overflow: visible; }
    .sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--glass-border); }
    .sidebar-menu { display: flex; overflow-x: auto; padding: 10px; }
    .sidebar-menu li a { padding: 10px 15px; white-space: nowrap; }
    .btk-layout { grid-template-columns: 1fr; }
    .main-content { padding: 20px 15px; }
}

@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 15px; padding: 1rem; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .hero h1 { font-size: 1.9rem; }
    .hero-content { padding: 25px 15px; }
    .hero-buttons { flex-direction: column; }
    .section { padding: 50px 5%; }
    .discord-notice-box { flex-direction: column; text-align: center; }
}