/* WebdeKob CRM - Ana stiller */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
}

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

.main-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: .75rem 1.5rem;
    position: sticky; top: 0; z-index: 100;
}
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; font-size: 1.25rem; color: var(--text); }
.logo:hover { text-decoration: none; color: var(--primary); }
.main-nav { display: flex; gap: 1.5rem; align-items: center; }
.main-nav a { color: var(--text-muted); font-weight: 500; }
.main-nav a.active { color: var(--primary); }
.main-nav .nav-logout { color: var(--danger); }

.main-content { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }
.main-footer { text-align: center; padding: 1rem; color: var(--text-muted); font-size: .875rem; border-top: 1px solid var(--border); }

/* Kartlar */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; margin-bottom: 1rem; }
.card-title { margin: 0 0 1rem; font-size: 1.125rem; font-weight: 600; }
.page-title { margin: 0 0 1.5rem; font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* Formlar */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: .35rem; font-weight: 500; color: var(--text); }
.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); }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { cursor: pointer; }

/* Butonlar */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .5rem 1rem; border-radius: var(--radius); font-weight: 500; font-size: .9375rem; border: none; cursor: pointer; transition: background .15s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-secondary:hover { background: #cbd5e1; text-decoration: none; color: var(--text); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: .35rem .65rem; font-size: .875rem; }

/* Tablolar */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; }
table.data-table th, table.data-table td { padding: .75rem; text-align: left; border-bottom: 1px solid var(--border); }
table.data-table th { background: var(--bg); font-weight: 600; color: var(--text-muted); font-size: .8125rem; text-transform: uppercase; letter-spacing: .02em; }
table.data-table tr:hover td { background: #f1f5f9; }
table.data-table .actions { white-space: nowrap; }
table.data-table .actions a { margin-right: .5rem; }

/* Badge / Etiket */
.badge { display: inline-block; padding: .2rem .5rem; border-radius: 9999px; font-size: .75rem; font-weight: 500; }
.badge-potential { background: #fef3c7; color: #92400e; }
.badge-active { background: #d1fae5; color: #065f46; }
.badge-active-project { background: #dbeafe; color: #1e40af; }
.badge-delivered { background: #d1fae5; color: #065f46; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-on-hold { background: #f3e8ff; color: #6b21a8; }

/* Progress bar */
.progress-wrap { background: var(--border); border-radius: 9999px; height: 8px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary); border-radius: 9999px; transition: width .3s; }
.progress-bar.success { background: var(--success); }
.progress-text { font-size: .875rem; font-weight: 500; color: var(--text-muted); }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }

/* Alert */
.alert { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }

/* Login sayfası */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.login-box { width: 100%; max-width: 380px; background: var(--card); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.login-box h1 { margin: 0 0 1.5rem; text-align: center; font-size: 1.5rem; }

/* Filtre / Araç çubuğu */
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.toolbar .form-control { max-width: 200px; }

/* Boş durum */
.empty-state { text-align: center; padding: 2rem; color: var(--text-muted); }
.empty-state p { margin: 0 0 .5rem; }

/* Modal benzeri (basit) */
.overlay-form { background: var(--card); padding: 1.5rem; border-radius: var(--radius); max-width: 500px; margin: 0 auto; }
