/* Biltakip - Modern Beyaz Tabanlı Tasarım */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,.1);
  --radius: 8px;
  --radius-lg: 12px;
  --sidebar-width: 260px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg-secondary); color: var(--text); line-height: 1.5; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.app-wrapper { display: flex; min-height: 100vh; width: 100%; }
.sidebar { width: var(--sidebar-width); background: var(--bg); border-right: 1px solid var(--border); position: fixed; height: 100vh; overflow-y: auto; }
.main-content { flex: 1; margin-left: var(--sidebar-width); padding: 1.5rem; min-height: 100vh; }

/* Header */
.header { background: var(--bg); padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.header h1 { margin: 0; font-size: 1.25rem; font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 1rem; }

/* Sidebar */
.sidebar-brand { padding: 1.5rem; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 1.1rem; color: var(--primary); }
.sidebar-nav { padding: 1rem 0; }
.sidebar-nav a { display: flex; align-items: center; padding: .75rem 1.5rem; color: var(--text); transition: background .15s; }
.sidebar-nav a:hover { background: var(--bg-secondary); color: var(--primary); }
.sidebar-nav a.active { background: rgba(37,99,235,.1); color: var(--primary); font-weight: 600; }
.sidebar-nav .nav-icon { margin-right: .75rem; width: 20px; text-align: center; }

/* Cards */
.card { background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.5rem; margin-bottom: 1.5rem; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.card-title { margin: 0; font-size: 1.1rem; font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .5rem 1rem; border-radius: var(--radius); font-size: .9rem; font-weight: 500; cursor: pointer; border: none; transition: all .15s; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; }
.btn-warning { background: var(--warning); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-secondary { background: var(--secondary); color: white; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--bg-secondary); }
.btn-sm { padding: .35rem .75rem; font-size: .85rem; }
.btn-lg { padding: .75rem 1.5rem; font-size: 1rem; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; margin-bottom: .35rem; font-weight: 500; font-size: .9rem; }
.form-control { width: 100%; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.form-select { appearance: none; background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E\"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2rem; }
textarea.form-control { min-height: 100px; resize: vertical; }

/* Table */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.table th { background: var(--bg-secondary); font-weight: 600; font-size: .85rem; color: var(--text-muted); }
.table tr:hover td { background: var(--bg-secondary); }
.table-actions { display: flex; gap: .5rem; }

/* Badge */
.badge { display: inline-block; padding: .2rem .5rem; font-size: .75rem; font-weight: 500; border-radius: 999px; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #cffafe; color: #155e75; }
.badge-secondary { background: #f1f5f9; color: var(--text-muted); }

/* Alert */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* Login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); }
.login-box { width: 100%; max-width: 400px; background: var(--bg); padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.login-title { text-align: center; margin-bottom: 1.5rem; font-size: 1.5rem; font-weight: 700; color: var(--text); }
.login-logo { text-align: center; margin-bottom: 1rem; font-size: 2rem; color: var(--primary); }

/* Notification badge */
.notif-badge { position: absolute; top: -4px; right: -4px; background: var(--danger); color: white; font-size: .7rem; min-width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.notif-wrap { position: relative; }

/* Responsive */
@media (max-width: 768px) {
  .sidebar { width: 100%; position: relative; }
  .main-content { margin-left: 0; }
  .app-wrapper { flex-direction: column; }
}

/* Page title */
.page-title { margin-bottom: 1.5rem; font-size: 1.5rem; font-weight: 600; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.stat-card { background: var(--bg); padding: 1.25rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: .85rem; color: var(--text-muted); margin-top: .25rem; }
