:root {
    --primary-hue: 225;
    --primary-color: hsl(var(--primary-hue), 70%, 55%);
    --primary-hover: hsl(var(--primary-hue), 70%, 60%);
    --primary-light: hsl(var(--primary-hue), 80%, 96%);

    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;

    --bg-main: #f3f4f6;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;

    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;

    --font-family-sans: 'Plus Jakarta Sans', sans-serif;
    --font-family-display: 'Montserrat', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --border-radius: 0.75rem; /* 12px */
}

/* Genel Stiller */
body {
    font-family: var(--font-family-sans);
    color: var(--text-dark);
    background-color: var(--bg-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-jakarta { font-family: var(--font-family-sans); }
.font-montserrat { font-family: var(--font-family-display); }

/* Kenar Çubuğu (Sidebar) */
.sidebar { border-right: 1px solid var(--border-color); }
.sidebar-brand {
    font-family: var(--font-family-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-dark);
}
.sidebar-brand span { color: var(--primary-color); }
.sidebar-link {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
    border-radius: 0.5rem; color: var(--text-medium); font-weight: 600;
    transition: all 0.2s ease-in-out;
}
.sidebar-link:hover { background-color: var(--primary-light); color: var(--primary-color); }
.sidebar-link.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px 0 hsla(var(--primary-hue), 70%, 55%, 0.3);
}
.sidebar-link i { width: 24px; text-align: center; }

/* Butonlar */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.625rem 1.25rem; border-radius: 0.5rem; font-weight: 600;
    transition: all 0.2s; border: none; cursor: pointer;
}
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-secondary { background-color: #e5e7eb; color: #374151; }
.btn-secondary:hover { background-color: #d1d5db; }
.btn-danger { background-color: var(--error-color); color: white; }
.btn-danger:hover { background-color: #dc2626; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* Form Elemanları */
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text-medium); margin-bottom: 0.25rem; }
.form-input {
    display: block; width: 100%; border-radius: 0.5rem; border: 1px solid #d1d5db;
    box-shadow: var(--shadow-sm); padding: 0.625rem 0.75rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px hsla(var(--primary-hue), 70%, 55%, 0.2); }
.form-file-input {
    margin-top: 0.25rem; display: block; width: 100%; font-size: 0.875rem; color: var(--text-light);
}
.form-file-input::file-selector-button {
    margin-right: 1rem; padding: 0.5rem 1rem; border-radius: 9999px; border: 0; font-size: 0.875rem; font-weight: 600;
    background-color: var(--primary-light); color: var(--primary-color); cursor: pointer; transition: background-color 0.2s;
}
.form-file-input::file-selector-button:hover { background-color: hsl(var(--primary-hue), 90%, 90%); }

/* Modal Stilleri */
.modal-overlay {
    position: fixed; inset: 0; background-color: rgba(17, 24, 39, 0.6); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 1rem;
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; z-index: 40;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background-color: white; border-radius: var(--border-radius); box-shadow: var(--shadow-lg);
    width: 100%; max-width: 32rem; transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .modal-content { transform: scale(1) translateY(0); }
.modal-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.modal-close-btn { color: #9ca3af; transition: color 0.2s; }
.modal-close-btn:hover { color: var(--text-dark); }
.modal-footer { padding: 1rem 1.5rem; background-color: #f9fafb; display: flex; justify-content: flex-end; gap: 0.75rem; border-top: 1px solid var(--border-color); border-bottom-left-radius: var(--border-radius); border-bottom-right-radius: var(--border-radius); }

/* Bildirim Stilleri */
#notification {
    position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 60;
    transform: translateY(150%); opacity: 0; transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}
#notification.show { transform: translateY(0); opacity: 1; }
.notification-item {
    display: flex; align-items: center; padding: 0.875rem 1.25rem;
    border-radius: 0.5rem; box-shadow: var(--shadow-lg); color: white; font-weight: 500;
}
.bg-green-500 { background-color: var(--success-color); }
.bg-red-500 { background-color: var(--error-color); }

/* Genel Sayfa Elementleri */
.page-title { font-family: var(--font-family-display); font-size: 2.25rem; font-weight: 800; color: var(--text-dark); }
.page-subtitle { font-family: var(--font-family-display); font-size: 1.25rem; font-weight: 700; color: var(--text-medium); padding-bottom: 0.5rem; border-bottom: 2px solid var(--border-color); }
.error-box { background-color: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; padding: 1rem; border-radius: 0.5rem; }
.empty-state {
    text-align: center; padding: 3rem 1.5rem; background-color: var(--bg-card);
    border-radius: var(--border-radius); border: 1px dashed var(--border-color);
}
.empty-state i { font-size: 3rem; color: #d1d5db; }
.empty-state p { margin-top: 1rem; color: var(--text-light); }
.back-link { color: var(--text-light); font-weight: 500; transition: color 0.2s; }
.back-link:hover { color: var(--primary-color); }

/* Kanban Paneli Stilleri */
.kanban-board { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; min-height: 75vh; }
.kanban-column { flex: 0 0 320px; width: 320px; background-color: #f1f2f4; border-radius: var(--border-radius); display: flex; flex-direction: column; }
.kanban-column-header { padding: 1rem; font-weight: 600; color: var(--text-medium); display: flex; align-items: center; gap: 0.75rem; }
.kanban-column-title { flex-grow: 1; font-weight: 700; }
.kanban-column-count { background-color: #dfe1e6; border-radius: 0.5rem; padding: 0.125rem 0.5rem; font-size: 0.75rem; font-weight: 600; }
.kanban-cards { flex-grow: 1; padding: 0 0.5rem 0.5rem 0.5rem; min-height: 100px; overflow-y: auto; }
.kanban-card { background-color: var(--bg-card); border-radius: 0.5rem; padding: 1rem; box-shadow: var(--shadow-sm); margin-bottom: 0.75rem; border-left: 4px solid transparent; cursor: grab; transition: box-shadow 0.2s, border-color 0.2s; }
.kanban-card:hover { box-shadow: var(--shadow-md); }
.kanban-card-title { font-weight: 600; color: var(--text-dark); }
.ghost-card { opacity: 0.5; background: #cce5ff; border: 1px dashed var(--primary-color); }

/* Kişi Kartları Stilleri (YENİ) */
.kisi-card {
    position: relative;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.kisi-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.kisi-card-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.kisi-card.group:hover .kisi-card-actions {
    opacity: 1;
    transform: translateY(0);
}
.action-btn {
    width: 2.25rem; height: 2.25rem; border-radius: 9999px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem; transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}
.action-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}
.action-btn.delete {
    background-color: #fee2e2;
    color: var(--error-color);
}
.action-btn.delete:hover {
    background-color: var(--error-color);
    color: white;
}

/* Takvim Stilleri */
.calendar-header { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.calendar-nav { display: flex; align-items: center; gap: 0.5rem; }
.calendar-nav a { width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; border-radius: 9999px; transition: background-color 0.2s; }
.calendar-nav a:hover { background-color: var(--primary-light); }
.calendar-day { min-height: 150px; position: relative; background-color: var(--bg-card); border-bottom: 1px solid var(--border-color); border-left: 1px solid var(--border-color); padding: 0.5rem; display: flex; flex-direction: column; }
.other-month { background-color: #f8f9fa; }
.day-number { font-weight: 600; color: var(--text-medium); width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; border-radius: 9999px; transition: all 0.2s; align-self: flex-start; }
.day-number.today { background-color: var(--primary-color); color: white; box-shadow: var(--shadow-md); }
.day-events-container { margin-top: 0.25rem; display: flex; flex-direction: column; gap: 0.25rem; overflow-y: auto; flex: 1; }

/* Etkinlik Balonları */
.event-bubble, .day-event { font-size: 12px; padding: 4px 8px; border-radius: 6px; display: flex; align-items: center; gap: 6px; cursor: pointer; transition: all 0.2s ease; border: 1px solid transparent; overflow: hidden; }
.event-bubble:hover, .day-event:hover { box-shadow: var(--shadow-sm); filter: brightness(1.05); }
.event-bubble .truncate, .day-event .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.day-event.resmi-tatil { background-color: #fee2e2; color: #991b1b; border-color: #fecaca; }
.day-event.dini-bayram { background-color: #dcfce7; color: #166534; border-color: #bbf7d0; }
.day-event.onemli-gun { background-color: #eef2ff; color: #3730a3; border-color: #c7d2fe; }

/* Platform Çipleri ve Sekmeleri */
.platform-chip-wrapper { position: relative; }
.platform-chip { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-weight: 600; }
.platform-chip-actions { position: absolute; top: -0.5rem; right: -0.5rem; display: flex; gap: 0.25rem; opacity: 0; transition: opacity 0.2s; z-index: 10; }
.platform-chip-wrapper:hover .platform-chip-actions { opacity: 1; }
.platform-chip-actions button { width: 1.5rem; height: 1.5rem; border-radius: 9999px; background: rgba(255,255,255,0.7); backdrop-filter: blur(2px); color: var(--text-light); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; border: 1px solid var(--border-color); }
.platform-chip-actions button:hover { color: var(--text-dark); background: white; }
.platform-tabs { display: flex; gap: 0.5rem; border-bottom: 2px solid var(--border-color); margin-bottom: 1rem; flex-wrap: wrap; }
.platform-tab { padding: 0.75rem 1.25rem; border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 600; color: var(--text-light); transition: all 0.2s; display: flex; align-items: center; gap: 0.5rem; border-radius: 6px 6px 0 0; }
.platform-tab:hover { color: var(--text-dark); background-color: #f3f4f6; }
.platform-tab.active { color: var(--primary-color); border-color: var(--primary-color); }

/* Sağ Tık Menüsü */
#context-menu, #firma-context-menu {
    position: fixed; display: none; z-index: 1000; width: 12rem; background-color: var(--bg-card);
    border-radius: 0.5rem; box-shadow: var(--shadow-lg); padding: 0.5rem; border: 1px solid var(--border-color);
}
.context-menu-item {
    display: flex; align-items: center; gap: 0.5rem; width: 100%;
    padding: 0.5rem 0.75rem; border-radius: 0.375rem; font-size: 14px;
    cursor: pointer; transition: background-color 0.2s; color: var(--text-medium);
    text-align: left;
}
.context-menu-item:hover { background-color: var(--primary-light); color: var(--primary-color); }
.context-menu-item.danger:hover { background-color: #fee2e2; color: var(--error-color); }

/* Platform Şablon Kartları (YENİ) */
.sablon-kart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: var(--shadow-sm);
}
.sablon-kart:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    color: var(--primary-color);
}


/* Yükleniyor Spinner'ı */
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: calc(50% - 0.5rem);
    left: calc(50% - 0.5rem);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

