/* assets/css/organizer.css */

:root {
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-page: #f8fafc;
    --bg-panel: #ffffff;
    --border-light: #e2e8f0;
    --black: #020617;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --shadow: 0 4px 15px rgba(0,0,0,0.03);
    --gradient-text: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --feed-bg: #f1f5f9;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #f8fafc;
        --text-muted: #94a3b8;
        --bg-page: #0f172a;
        --bg-panel: #1e293b;
        --border-light: #334155;
        --black: #ffffff;
        --primary: #60a5fa;
        --primary-hover: #93c5fd;
        --shadow: 0 4px 15px rgba(0,0,0,0.2);
        --gradient-text: linear-gradient(135deg, #60a5fa, #a78bfa);
        --feed-bg: #0f172a;
    }
    .btn-primary { color: #000000 !important; }
    .nav-links a.active { color: #000000 !important; }
}

* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; margin: 0; background-color: var(--bg-page); color: var(--text-dark); display: flex; min-height: 100vh; overflow-x: hidden; transition: background-color 0.3s, color 0.3s; }

/* Sidebar & Mobile Header */
.sidebar { width: 260px; background-color: var(--bg-panel); border-right: 1px solid var(--border-light); display: flex; flex-direction: column; position: fixed; height: 100vh; z-index: 100; transition: transform 0.3s ease; }
.sidebar-header { padding: 30px 24px; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; }
.sidebar-logo { font-size: 20px; font-weight: 800; color: var(--text-dark); text-decoration: none; display: flex; align-items: center; gap: 8px; letter-spacing: -0.03em; }
.nav-links { padding: 24px 12px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; overflow-y: auto; }
.nav-links a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 12px; transition: 0.2s; }
.nav-links a:hover { background-color: var(--border-light); color: var(--text-dark); }
.nav-links a.active { background-color: var(--black); color: white; }
.sidebar-footer { padding: 24px; border-top: 1px solid var(--border-light); }
.logout-btn { display: block; width: 100%; text-align: center; color: var(--danger); font-weight: 600; text-decoration: none; padding: 10px; border-radius: 8px; transition: 0.2s; }
.logout-btn:hover { background: rgba(239, 68, 68, 0.1); }

.mobile-header { display: none; background-color: var(--bg-panel); border-bottom: 1px solid var(--border-light); padding: 15px 20px; justify-content: space-between; align-items: center; position: fixed; width: 100%; top: 0; z-index: 99; }
.hamburger { background: none; border: none; font-size: 24px; color: var(--text-dark); cursor: pointer; }

/* Main Content & Layouts */
.main-content { margin-left: 260px; padding: 40px; width: calc(100% - 260px); max-width: 1400px; transition: 0.3s; }
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; flex-wrap: wrap; gap: 15px; }
.header h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.header p { margin: 5px 0 0 0; color: var(--text-muted); }

/* Panels & Cards */
.panel { background: var(--bg-panel); border: 1px solid var(--border-light); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); transition: 0.2s; margin-bottom: 24px; overflow: hidden; }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.panel-header h2 { margin: 0; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }

/* Buttons & Inputs */
.btn-primary { background: var(--black); color: white; padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; transition: 0.2s; display: inline-block; box-shadow: 0 4px 14px rgba(0,0,0,0.1); white-space: nowrap; border: none; cursor: pointer; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn-outline { background: transparent; color: var(--text-dark); padding: 10px 20px; border: 1px solid var(--border-light); border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; transition: 0.2s; }
.btn-outline:hover { background: var(--border-light); }

input[type="text"], input[type="number"], input[type="datetime-local"], select, textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border-light); border-radius: 12px; box-sizing: border-box; font-family: 'Inter', sans-serif; font-size: 14px; background: var(--bg-page); color: var(--text-dark); transition: 0.2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }

/* Tables */
.table-responsive { overflow-x: auto; margin-top: 10px; }
table { width: 100%; border-collapse: collapse; text-align: left; min-width: 600px; }
th { padding: 16px 10px; font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; border-bottom: 1px solid var(--border-light); }
td { padding: 16px 10px; border-bottom: 1px solid var(--border-light); font-size: 14px; color: var(--text-dark); }
tr:last-child td { border-bottom: none; }
tr:hover { background-color: var(--bg-page); }

/* Status Messages & Badges */
.success { background-color: rgba(16, 185, 129, 0.1); color: var(--success); padding: 16px; border-radius: 12px; margin-bottom: 24px; border: 1px solid rgba(16, 185, 129, 0.2); font-weight: 600; }
.error { background-color: rgba(239, 68, 68, 0.1); color: var(--danger); padding: 16px; border-radius: 12px; margin-bottom: 24px; border: 1px solid rgba(239, 68, 68, 0.2); font-weight: 600; }
.empty-state { text-align: center; padding: 40px; color: var(--text-muted); font-size: 15px; }

/* Responsive Media Queries */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .mobile-header { display: flex; }
    .main-content { margin-left: 0; padding: 90px 20px 30px 20px; width: 100%; }
}