@import 'tailwindcss';

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';

@theme {
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';
}

/* ========== TAMBAHKAN KODE DI BAWAH INI ========== */

/* Custom Styles untuk Aplikasi Gempa Detector */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: white;
    font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
    color: #1a1a1a;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

/* SVG Icon Styles */
.icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    flex-shrink: 0;
}

.icon-sm {
    width: 20px;
    height: 20px;
}

.icon-lg {
    width: 32px;
    height: 32px;
}

/* Card Styles */
.card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-siaga {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Typography */
h1 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.text-3xl {
    font-size: 1.875rem;
    font-weight: 700;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.w-full {
    width: 100%;
}

/* Chart Container */
.chart-container {
    margin-top: 1rem;
    overflow-x: auto;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    min-height: 200px;
    padding: 1rem 0;
}

.bar {
    flex: 1;
    background-color: #dc2626;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
    min-width: 40px;
}

.bar-label {
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.data-table th {
    font-weight: 500;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== ADMIN LAYOUT ========== */
.admin-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
}

/* === NAVBAR ADMIN - VERSI PROFESIONAL === */
.admin-nav {
    background: white;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e5e7eb;
}

/* Brand / Logo */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
}

.nav-brand svg {
    color: #dc2626;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: #4b5563;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-links a:hover {
    background: #fef2f2;
    color: #dc2626;
}

.nav-links a.active {
    background: #fef2f2;
    color: #dc2626;
}

/* Logout Button */
.nav-links form button {
    background: white;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links form button:hover {
    background: #fef2f2;
    border-color: #dc2626;
    transform: translateY(-1px);
}

/* User Info Section (Opsional) */
.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid #e5e7eb;
}

.nav-avatar {
    width: 32px;
    height: 32px;
    background: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
}

.nav-username {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

/* === MAIN CONTENT === */
.admin-content { 
    padding: 28px 32px; 
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-nav {
        padding: 0 16px;
    }
    
    .nav-links a {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .admin-content {
        padding: 16px;
    }
    
    .nav-username {
        display: none;
    }
}