/* === MINIMALIST & PROFESYONEL TEMA === */
:root {
    /* Açık Tema (Varsayılan) */
    --background: #ffffff;
    --foreground: #fafafa;
    --border: #eaeaea;
    --text-primary: #000000;
    --text-secondary: #666666;
    --accent: #0070f3;
    --accent-hover: #0051b2;
    --danger: #dc3545;
}
.dark-mode {
    /* Koyu Tema */
    --background: #000000;
    --foreground: #111111;
    --border: #333333;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #0070f3;
    --accent-hover: #3b82f6;
}

/* --- Genel Ayarlar --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    margin: 0;
    padding-top: 61px; /* Header yüksekliği + border */
    transition: background-color 0.3s, color 0.3s;
}
.container {
    max-width: 1024px;
    margin: 40px auto;
    padding: 0 20px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h2 { font-size: 28px; border-bottom: 1px solid var(--border); padding-bottom: 15px; margin-bottom: 25px; font-weight: 600; }
h3 { font-size: 22px; margin-bottom: 20px; font-weight: 600; }

/* --- Header / Navigasyon --- */
.main-nav {
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: fixed; top: 0; left: 0; width: 100%;
    box-sizing: border-box; z-index: 1000;
    transition: background-color 0.3s, border-color 0.3s;
}
.main-nav .nav-left, .main-nav .nav-right { display: flex; align-items: center; gap: 20px; }
.main-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover { color: var(--text-primary); text-decoration: none; }
.main-nav a.active { color: var(--text-primary); border-bottom-color: var(--text-primary); }
.main-nav a.admin-link { color: var(--danger); font-weight: bold; }
#theme-toggle { background: none; border: none; cursor: pointer; color: var(--text-secondary); font-size: 22px; padding: 0; line-height: 1; }
#theme-toggle:hover { color: var(--text-primary); }

.dark-mode .sun-icon { display: inline; }
.dark-mode .moon-icon { display: none; }
.light-mode .sun-icon { display: none; }
.light-mode .moon-icon { display: inline; }

/* --- Kartlar ve Paneller --- */
.card {
    background-color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    transition: background-color 0.3s, border-color 0.3s;
}

/* --- Butonlar --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary {
    background-color: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    text-decoration: none;
}
.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}
.btn-secondary:hover {
    background-color: var(--foreground);
    border-color: #888;
    text-decoration: none;
}

/* --- Formlar --- */
.form-container { max-width: 450px; margin: 40px auto; background-color: var(--background); border: none; padding: 40px; border-radius: 8px; box-shadow: 0 4px 25px rgba(0,0,0,0.1); }
.dark-mode .form-container { box-shadow: 0 4px 25px rgba(0,0,0,0.4); }
.form-container input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-sizing: border-box;
    background-color: var(--foreground);
    color: var(--text-primary);
    font-size: 15px;
}
.form-container button { width: 100%; }

/* --- Tablolar --- */
table { width: 100%; border-collapse: collapse; }
th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
th { color: var(--text-secondary); font-size: 13px; font-weight: 500; text-transform: uppercase; }

/* === MESAJLAŞMA ARAYÜZÜ STİLLERİ === */

/* --- Gelen Kutusu (messages.php) --- */
.conversation-list {
    display: flex;
    flex-direction: column;
}
.conversation-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
    color: var(--text-primary);
}
.conversation-item:last-child {
    border-bottom: none;
}
.conversation-item:hover {
    background-color: rgba(128, 128, 128, 0.05);
    text-decoration: none;
}
.conversation-item.unread .conv-username,
.conversation-item.unread .conv-last-message {
    font-weight: bold;
    color: var(--text-primary);
}
.conv-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}
.conv-details {
    flex-grow: 1;
    overflow: hidden;
}
.conv-username {
    font-weight: 600;
    display: block;
}
.conv-last-message {
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}
.conv-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 15px;
}
.unread-badge {
    background-color: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}

/* --- Sohbet Ekranı (chat.php) --- */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px); /* Ekran yüksekliğine göre ayarla */
    padding: 0;
}
.chat-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.chat-header .back-button { font-size: 24px; margin-right: 15px; color: var(--text-secondary); }
.chat-header .chat-avatar { width: 40px; height: 40px; font-size: 18px; margin-right: 15px; }
.chat-header .chat-username { margin: 0; font-size: 18px; }
.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}
.message-row {
    display: flex;
    margin-bottom: 15px;
}
.message-row.sent {
    justify-content: flex-end;
}
.message-row.received {
    justify-content: flex-start;
}
.message-bubble {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 70%;
    line-height: 1.5;
    position: relative;
}
.message-row.sent .message-bubble {
    background-color: var(--accent);
    color: white;
    border-bottom-right-radius: 4px;
}
.message-row.received .message-bubble {
    background-color: var(--foreground);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}
.dark-mode .message-row.received .message-bubble {
    background-color: #333;
}
.message-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    float: right;
    margin-left: 10px;
    margin-top: 5px;
}
.message-row.received .message-time {
    color: var(--text-secondary);
}
.chat-composer {
    padding: 15px;
    border-top: 1px solid var(--border);
    background-color: var(--foreground);
    flex-shrink: 0;
}
.chat-composer form {
    display: flex;
    gap: 10px;
}
.chat-composer input[type="text"] {
    flex-grow: 1;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 10px 20px;
    font-size: 15px;
    background-color: var(--background);
    color: var(--text-primary);
}
.chat-composer input:focus {
    outline: none;
    border-color: var(--accent);
}
.chat-composer .btn {
    border-radius: 18px;
}

/* --- FORM İYİLEŞTİRMELERİ --- */
.password-wrapper {
    position: relative;
}
.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    color: var(--text-secondary);
}

#username-status {
    font-size: 13px;
    padding: 5px 0;
    display: block;
    min-height: 20px; /* Boşken zıplama yapmasın */
}
.status-available {
    color: var(--success-color);
}
.status-taken {
    color: var(--danger-color);
}

/* === ADMIN PANELİ YENİ TASARIM STİLLERİ === */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.stat-card {
    background-color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-primary);
}
.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}
.user-management-table td, .user-management-table th {
    vertical-align: middle;
}
.user-info-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}
.list-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.list-username {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}
.list-email {
    font-size: 13px;
    color: var(--text-secondary);
}
.role-badge {
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}
.role-badge.role-admin {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}
.role-badge.role-user {
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--accent);
}
.action-buttons {
    display: flex;
    gap: 10px;
}
.btn-sm {
    padding: 5px 12px;
    font-size: 13px;
}

/* === PROFİL SAYFASI TASARIMI === */

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
}
.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--background);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.profile-info h1 {
    margin: 0 0 5px 0;
    font-size: 32px;
}
.profile-join-date {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0;
}
.profile-actions {
    margin-left: auto; /* Butonları sağa yaslar */
}

.profile-body {
    display: grid;
    grid-template-columns: 250px 1fr; /* Sol sütun sabit, sağ sütun esnek */
    gap: 30px;
    margin-top: 30px;
}
.profile-sidebar, .profile-main-content {
    /* Grid yapısı için ek bir şeye gerek yok */
}
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}
.stat-item:last-child {
    border-bottom: none;
}
.stat-item strong {
    font-size: 18px;
    font-weight: 600;
}
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 6px;
}
.activity-item a {
    font-weight: 500;
}
.activity-time {
    font-size: 13px;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-left: 15px;
}
/* === FORUM VE POST TASARIMI STİLLERİ === */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.page-header h2 {
    border: none;
    margin: 0;
}

/* Konu Listesi (forum.php) */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.post-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease-in-out;
}
.post-item-link:hover {
    transform: translateY(-3px);
}
.post-item.card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
}
.post-item-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}
.post-item-details {
    flex-grow: 1;
}
.post-item-title {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: var(--text-primary);
}
.post-item-meta {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}
.post-item-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--background);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    min-width: 70px;
    color: var(--text-secondary);
    font-size: 13px;
}
.post-item-stats span {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
}

/* Konu Detay Sayfası (view_post.php) */
.post-view-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.post-author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}
.author-name {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}
.post-date {
    font-size: 13px;
    color: var(--text-secondary);
}
.post-body {
    margin-top: 25px;
    line-height: 1.7;
    font-size: 16px;
}

.replies-section h3 {
    margin-bottom: 15px;
}
.reply-item {
    margin-bottom: 15px;
    padding: 20px;
}
.reply-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}
.reply-body {
    line-height: 1.6;
    font-size: 15px;
}

/* Yanıt Formu */
.reply-form-container textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-sizing: border-box;
    background-color: var(--background);
    color: var(--text-primary);
    font-size: 15px;
    resize: vertical;
}
/* === YÖNETİM PANELİ - SON DOKUNUŞLAR VE İYİLEŞTİRMELER === */

/* İstatistik kartlarına renkli kenar ve hover efekti */
.stat-card {
    border-left: 4px solid var(--accent);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.dark-mode .stat-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Tablo başlığını daha belirgin yap */
.user-management-table thead {
    background-color: var(--background);
}
.dark-mode .user-management-table thead {
    background-color: #2a2a2a; /* Koyu temada daha belirgin bir başlık */
}

/* Tablo satırlarına daha yumuşak hover efekti */
.user-management-table tbody tr:hover {
    background-color: var(--accent);
}
/* Hover anında satır içindeki yazıların rengini beyaz yap */
.user-management-table tbody tr:hover td,
.user-management-table tbody tr:hover .list-username,
.user-management-table tbody tr:hover .list-email {
    color: white;
}
/* Hover anında rol etiketinin renklerini ayarla */
.user-management-table tbody tr:hover .role-badge {
    background-color: rgba(255,255,255,0.2);
    color: white;
}

/* Kullanıcı listesindeki yeni ikonlu eylem butonları */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--background);
    border: 1px solid var(--border);
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-action:hover {
    background-color: var(--accent);
    color: white;
    transform: scale(1.1);
    text-decoration: none;
}
.dark-mode .user-management-table tbody tr:hover .btn-action {
    background-color: var(--background);
    color: var(--text-primary);
}
.dark-mode .user-management-table tbody tr:hover .btn-action:hover {
    background-color: var(--white);
    color: var(--background-primary);
}

/* Genel Admin Kartlarına hover efekti */
.admin-page-content .card {
    transition: box-shadow 0.3s ease;
}
.admin-page-content .card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.dark-mode .admin-page-content .card:hover {
     box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}
.btn-danger {
    background-color: var(--danger);
    color: #fff;
    border-color: var(--danger);
}
.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
    color: #fff;
    text-decoration: none;
}
.file-upload-wrapper {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 15px;
}
.file-upload-wrapper small {
    display: block;
    margin-top: 10px;
    color: var(--text-secondary);
}
.attachments-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.attachment-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--background);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    font-size: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.2s, border-color 0.2s;
}
.attachment-item:hover {
    background-color: var(--foreground);
    border-color: var(--accent);
    text-decoration: none;
}
.attachment-icon {
    font-size: 18px;
}
/* === MODERN POST EDİTÖRÜ TASARIMI (create_post.php) === */

.post-editor-container {
    max-width: 850px;
    margin: 40px auto;
}

.editor-card {
    padding: 30px 40px;
}

.form-group {
    margin-bottom: 25px;
}

.editor-title-input {
    width: 100%;
    border: none;
    padding: 10px 0;
    font-size: 2.2em;
    font-weight: 700;
    background-color: transparent;
    color: var(--text-primary);
    outline: none;
    border-bottom: 1px solid var(--border);
}
.dark-mode .editor-title-input {
    color: var(--text-primary);
}

.editor-textarea {
    width: 100%;
    border: none;
    background-color: transparent;
    color: var(--text-primary);
    font-size: 1.1em;
    line-height: 1.7;
    min-height: 300px;
    resize: vertical;
    outline: none;
    padding: 15px 0;
}

.textarea-footer {
    text-align: right;
    font-size: 13px;
    color: var(--text-secondary);
}

.editor-attachment-area {
    display: block;
    border: 2px dashed var(--border);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}
.editor-attachment-area.dragover {
    border-color: var(--accent);
    background-color: rgba(0, 112, 243, 0.05);
}
.attachment-icon {
    font-size: 2em;
    color: var(--text-secondary);
}
.attachment-text {
    color: var(--text-primary);
    font-weight: 500;
    margin: 10px 0;
}
.editor-attachment-area small {
    color: var(--text-secondary);
    font-size: 13px;
}

.editor-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Dosya inputunu gizlemek için */
input[type="file"][hidden] {
    display: none;
}
/* === ANA SAYFA (LANDING PAGE) VE LOGO STİLLERİ === */

/* Site Logosu */
.site-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -1px;
}
.site-logo:hover {
    text-decoration: none;
    color: var(--accent);
}

/* Karşılama Alanı (Hero Section) */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: calc(100vh - 65px);
    padding: 40px 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, var(--foreground), #1a1a1a);
    color: var(--text-primary);
    animation: fadeIn 1s ease-in-out;
}

.hero-content {
    max-width: 720px;
    padding: 20px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease-in-out;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--text-primary);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-buttons .btn {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background-color: var(--accent, #4f46e5);
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn:hover {
    background-color: #3730a3;
    transform: scale(1.05);
}

/* Responsive başlık boyutu */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
}

/* Fade-in animasyonu */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === HEADER AVATAR TASARIMI === */

.user-info {
    display: flex;
    align-items: center;
    gap: 10px; /* Avatar ve isim arası boşluk */
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%; /* Resmi mükemmel daire yapar */
    object-fit: cover; /* Resmin orantısını bozmadan daireye sığdırır */
    border: 2px solid var(--border); /* Temaya uyumlu ince çerçeve */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Yumuşak animasyon */
}

/* Linkin üzerine gelindiğinde avatarın büyümesi ve parlaması */
.user-info-link:hover .nav-avatar {
    transform: scale(1.1); /* Hafifçe büyüt */
    box-shadow: 0 0 10px var(--accent); /* Vurgu için temaya uygun gölge */
}
/* === GİRİŞ/KAYIT SAYFASI (AUTH) TASARIMI === */

.auth-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    background-color: var(--background);
}

.auth-page-container .main-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

/* Giriş/Kayıt formlarının içindeki logo */
.form-logo {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -1px;
    margin-bottom: 30px;
    display: block;
}
.form-logo:hover {
    text-decoration: none;
}

/* --- YENİ HEADER TASARIMI --- */

body {
    padding-top: 61px; /* Header yüksekliği (60px) + border (1px) */
}
/* Giriş sayfası gibi tam ekran sayfalarda padding'i sıfırla */
body.full-page {
    padding-top: 0;
}

.main-nav {
    background-color: var(--foreground);
    border-bottom: 1px solid var(--border);
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    transition: background-color 0.3s, border-color 0.3s;
}
.main-nav a {
    text-decoration: none;
}
.main-nav .nav-left, .main-nav .nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.main-nav .site-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
}
.main-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.main-nav .nav-link:hover {
    color: var(--text-primary);
}
.main-nav .nav-link.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
}
.main-nav .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.main-nav .nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
/* === YENİ ANA SAYFA TASARIMI (index.php) === */

/* BÖLÜM 1: ANİMASYONLU GRADIENT HERO */
.hero-section {
    padding: 100px 20px;
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(80vh - 61px);
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 20px;
    max-width: 600px;
    margin: 20px auto 40px auto;
    opacity: 0.9;
}

.hero-buttons .btn-lg {
    padding: 15px 35px;
    font-size: 18px;
    font-weight: bold;
}
.hero-buttons .btn-primary {
    background-color: var(--white);
    color: var(--accent);
    border-color: var(--white);
}
.hero-buttons .btn-primary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}
.hero-buttons .btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}
.hero-buttons .btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
}

/* BÖLÜM 2: ÖZELLİKLER */
.features-section {
    padding: 80px 0;
    background-color: var(--foreground);
}
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.feature-card {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.dark-mode .feature-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 22px;
}
.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* BÖLÜM 3: ÇAĞRI (CTA) */
.cta-section {
    background-color: var(--accent);
    color: white;
    text-align: center;
    padding: 80px 20px;
}
.cta-section h2 {
    color: white;
    border: none;
}
.cta-section p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

/* KAYDIRMA ANİMASYONLARI */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
/* === MÜKEMMEL ANA SAYFA TASARIMI === */

/* Dinamik Yazı Efekti için İmleç */
.ti-cursor {
    font-weight: 300;
    margin-left: 2px;
    animation: blink 1s infinite;
}
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* Son Aktiviteler Bölümü */
.latest-activity-section {
    padding: 80px 0;
    background-color: var(--foreground);
}

/* Yükleniyor... Animasyonu (Spinner) */
.spinner {
    border: 4px solid rgba(var(--text-primary-rgb, 0,0,0), 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: var(--accent, var(--primary-color));
    animation: spin 1s ease infinite;
    margin: 40px auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* AJAX ile yüklenen post kartı */
.latest-post-card {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.latest-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}
.latest-post-card h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    flex-grow: 1; /* Başlıkların aynı hizada kalmasını sağlar */
}
.post-meta-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: auto; /* Metayı en alta iter */
    padding-top: 15px;
    border-top: 1px solid var(--border);
}
.post-meta-info img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}
/* === GÖREV TAKİP SİSTEMİ STİLLERİ === */
.task-card { margin-bottom: 20px; }
.task-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 15px; }
.task-header h3 { margin: 0; }
.task-status { font-weight: bold; padding: 5px 10px; border-radius: 15px; font-size: 12px; }
.status-bekliyor .task-status { background-color: rgba(255, 193, 7, 0.2); color: #856404; }
.status-yapılıyor .task-status { background-color: rgba(0, 123, 255, 0.1); color: var(--accent); }
.status-tamamlandı .task-status { background-color: rgba(40, 167, 69, 0.1); color: var(--success-color); }
.task-description { color: var(--text-secondary); min-height: 40px; }
.task-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }


.task-status-form select { padding: 8px; border-radius: var(--border-radius); border: 1px solid var(--border); background-color: var(--background); color: var(--text-primary); }
.task-summary-list { display: flex; flex-direction: column; gap: 15px; }
.task-summary-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; background-color: var(--background); border: 1px solid var(--border); border-radius: 6px; }
.task-summary-info { display: flex; flex-direction: column; }
.task-summary-title { font-weight: 600; }
.task-summary-due { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* === ŞİRKET YÖNETİM PANELİ STİLLERİ === */
.company-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Sol sütun daha geniş */
    gap: 30px;
}
.member-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.member-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--background);
    padding: 10px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

/* === ŞİRKET YÖNETİMİ EK STİLLERİ === */
.member-item {
    position: relative;
}
.remove-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background-color: var(--danger-color);
    color: white;
    font-size: 14px;
    opacity: 0; /* Normalde görünmez */
    transition: opacity 0.2s;
}
.member-item:hover .remove-btn {
    opacity: 1; /* Üzerine gelince görünür */
}
.danger-zone {
    border-color: var(--danger-color);
    background-color: rgba(220, 53, 69, 0.05);
}
.dark-mode .danger-zone {
    background-color: rgba(220, 53, 69, 0.1);
}

/* === TECHNODRMZ PLATFORMU - FİNAL TEMA DOSYASI === */

/* --- 1. TEMA DEĞİŞKENLERİ VE GLOBAL AYARLAR --- */
:root {
    /* Açık Tema (Varsayılan) */
    --accent: #0070f3;
    --accent-hover: #0051b2;
    --accent-rgb: 0, 112, 243; /* JS olmadan transparan renkler için */
    --background: #f8f9fa;
    --foreground: #ffffff;
    --border: #dee2e6;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --danger: #dc3545;
    --success: #28a745;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

.dark-mode {
    /* Koyu Tema */
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-rgb: 59, 130, 246;
    --background: #111827;
    --foreground: #1f2937;
    --border: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --danger: #ef4444;
    --success: #22c55e;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth; /* Sayfa içi linklerde yumuşak kaydırma */
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    margin: 0;
    padding-top: 61px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color 0.3s, color 0.3s;
}
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}
h1,h2,h3,h4 { letter-spacing: -0.5px; color: var(--text-primary); }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

/* --- 2. KART, BUTON, FORM GİBİ ANA BİLEŞENLER --- */
.card {
    background-color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.dark-mode .card:hover {
    border-color: #4b5563;
}
.btn {
    display: inline-block; padding: 10px 20px; border-radius: 6px;
    font-weight: 500; text-align: center; cursor: pointer;
    border: 1px solid transparent; transition: all 0.2s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background-color: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background-color: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-secondary { background-color: var(--foreground); color: var(--text-primary); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--text-secondary); }
.btn-danger { background-color: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background-color: #c82333; border-color: #c82333; color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.form-container input, .form-container textarea, .form-group input, .form-group textarea, .form-group select {
    background-color: var(--background); color: var(--text-primary);
    width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid var(--border);
    border-radius: 6px; box-sizing: border-box; font-size: 15px; transition: all 0.2s;
}
input:focus, textarea:focus, select:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25);
}

/* --- 3. HEADER VE NAVİGASYON --- */
.main-nav {
    background-color: rgba(var(--background-rgb, 255, 255, 255), 0.85); /* Açık temada RGB gerekiyor */
    .dark-mode & { background-color: rgba(31, 41, 55, 0.85); } /* Koyu temada direk renk */
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); height: 61px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 40px; position: fixed; top: 0; left: 0;
    width: 100%; box-sizing: border-box; z-index: 1000;
}
.site-logo { font-size: 22px; font-weight: 700; color: var(--text-primary); letter-spacing: -1px; }
.nav-link { color: var(--text-secondary); font-weight: 500; font-size: 15px; padding-bottom: 5px; border-bottom: 2px solid transparent; }
.nav-link:hover { color: var(--text-primary); }
.nav-link.active { color: var(--text-primary); border-bottom-color: var(--accent); }
.user-info { display: flex; align-items: center; gap: 10px; }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

/* --- 4. SİTEYE ÖZEL BİLEŞENLER (FORUM, CHAT, PANEL VB.) --- */
/* Burası önceki cevaplardaki tüm özel CSS kodlarını (forum, chat, admin vs.) içermelidir. */
/* Örnek olarak birkaçını ekliyorum, ancak tam liste için önceki cevapları referans alabilirsiniz. */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.stat-card { border-left: 4px solid var(--accent); }
.post-item-link:hover { transform: translateY(-3px); }
.post-item.card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.post-item-avatar img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; }
.post-item-details { flex-grow: 1; }
.post-item-title { margin: 0 0 5px 0; font-size: 18px; color: var(--text-primary); }
.post-item-meta { margin: 0; font-size: 14px; color: var(--text-secondary); }
.post-item-stats { text-align: center; color: var(--text-secondary); font-size: 13px; }
.post-item-stats span { font-size: 20px; font-weight: bold; color: var(--text-primary); }
/* Diğer tüm CSS kodlarınız... */


/* --- 5. TEMA UYUMLU SCROLLBAR (BONUS) --- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
    border: 2px solid var(--background);
}
.dark-mode::-webkit-scrollbar-thumb { background-color: #444; border-color: var(--background); }
.dark-mode::-webkit-scrollbar-thumb:hover { background-color: #555; }


/* === ŞİRKET GÖREV YÖNETİM PANELİ STİLLERİ === */

.tasks-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 sütunlu yapı */
    gap: 20px;
    margin-top: 30px;
}

.task-column {
    background-color: var(--background);
    border-radius: var(--border-radius);
    padding: 15px;
}

.column-title {
    font-size: 16px;
    font-weight: 600;
    padding: 0 10px 15px 10px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 200px; /* Sütunlar boşken bile yer kaplasın */
}

.task-item.card {
    padding: 15px;
    cursor: grab;
}
.task-item.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.task-item-title {
    font-weight: 500;
    margin: 0 0 15px 0;
}

.task-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
}
.task-item-meta img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* company_dashboard'daki hızlı linkler için */
a.quick-link-card {
    text-decoration: none;
    color: var(--text-primary);
}
a.quick-link-card h3 {
    margin-top: 0;
}
a.quick-link-card p {
    color: var(--text-secondary);
}


/* === CANLI ARAMA TASARIMI === */

.live-search-container {
    position: relative;
    margin-left: 20px;
}

#live-search-input {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 8px 15px;
    width: 250px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
}
#live-search-input:focus {
    width: 350px;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25);
    outline: none;
}

#live-search-results {
    display: none; /* Başlangıçta gizli */
    position: absolute;
    top: 120%;
    left: 0;
    width: 100%;
    min-width: 350px;
    background-color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1001;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 10px 15px;
    border-bottom: 1px solid var(--border);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.2s;
}
.search-result-item:hover {
    background-color: var(--background);
    text-decoration: none;
}
.search-result-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.search-result-info span {
    display: block;
}
.search-result-info .title {
    font-weight: 500;
}
.no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
}

.notification-list { display: flex; flex-direction: column; }
.notification-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid var(--border); color: var(--text-primary); text-decoration: none; }
.notification-item:hover { background-color: var(--background); }
.notification-item:last-child { border-bottom: none; }
.notification-time { font-size: 13px; color: var(--text-secondary); flex-shrink: 0; margin-left: 20px; }


/* === YENİ MESAJLAŞMA SAYFASI TASARIMI === */
.messages-container {
    display: grid;
    grid-template-columns: 320px 1fr; /* Sol bar 320px, sağ taraf kalan alan */
    height: calc(100vh - 120px); /* Sayfa yüksekliğine göre ayarla */
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.conversations-sidebar {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    background-color: var(--foreground);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header h3 {
    margin: 0;
}

.conversation-list {
    overflow-y: auto;
    flex-grow: 1;
}

.conversation-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    gap: 15px;
}

.conversation-item:hover {
    background-color: var(--background-hover);
}

.conversation-item.active {
    background-color: var(--accent-translucent);
}

.conversation-item.unread .conv-username,
.conversation-item.unread .conv-last-message {
    font-weight: bold;
    color: var(--text-primary);
}

.conv-details {
    overflow: hidden;
    flex-grow: 1;
}

.conv-username {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.conv-last-message {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unread-badge {
    background-color: var(--accent);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 50px;
    margin-left: auto;
}

.no-conversations {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.chat-area {
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background-color: var(--foreground);
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column-reverse; /* Mesajları aşağıdan yukarı sıralar */
}

.message {
    display: flex;
    margin-bottom: 15px;
    max-width: 70%;
}

.message-content {
    padding: 10px 15px;
    border-radius: 18px;
    position: relative;
}

.message p { margin: 0; }

.message-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 5px;
    display: block;
}

.message.sent {
    align-self: flex-end;
}
.message.sent .message-content {
    background-color: var(--accent);
    color: white;
    border-bottom-right-radius: 4px;
}
.message.sent .message-time {
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
}

.message.received {
    align-self: flex-start;
}
.message.received .message-content {
    background-color: var(--foreground-deep);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.chat-input-area {
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    background-color: var(--foreground);
}

.chat-form {
    display: flex;
    gap: 10px;
}

.chat-form textarea {
    flex-grow: 1;
    resize: none;
    padding: 10px 15px;
    height: 44px;
}

.chat-form button {
    height: 44px;
}

.no-chat-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-secondary);
}

/* === YENİ DASHBOARD TASARIMI === */

/* İstatistik Kartları */
.stats-grid .action-card {
    background-color: var(--accent-translucent);
    border-style: dashed;
    color: var(--accent);
    transition: all 0.2s ease;
    text-decoration: none;
}
.stats-grid .action-card:hover {
    background-color: var(--accent-translucent-deep);
    border-color: var(--accent);
}
.stats-grid .action-card .stat-value {
    font-size: 28px;
}

/* Ana Grid Yapısı */
.dashboard-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 2fr 1fr; /* Sol sütun daha geniş */
    gap: 30px;
}
.dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Görev ve Aktivite Listeleri */
.task-summary-list, .activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.task-summary-item, .activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}
.task-summary-list .task-summary-item:last-child,
.activity-list .activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.task-summary-title, .activity-title {
    color: var(--text-primary);
    font-weight: 500;
}
.activity-item:hover .activity-title {
    color: var(--accent);
}
.activity-time, .activity-author {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    margin-left: 15px;
}
.empty-state {
    color: var(--text-secondary);
    padding: 20px 0;
    text-align: center;
}
.card-footer {
    text-align: right;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

/* Tablet ve Mobil için Grid Ayarı */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr; /* Tek sütuna düşür */
    }
}

/* === PROFİL DÜZENLEME SAYFASI === */
.edit-profile-container {
    max-width: 800px;
    margin: 40px auto;
}
.edit-profile-form .form-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    margin: 20px 0;
}
.avatar-upload-container {
    text-align: center;
}
.avatar-upload-container .avatar-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 10px auto;
    border: 3px solid var(--border);
}
.avatar-upload-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-upload-container small {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}
.profile-info-fields hr {
    margin: 30px 0;
    border-color: var(--border);
}
.profile-info-fields h4 {
    margin-bottom: 5px;
}
.form-hint {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 0;
}
.btn-full-width {
    width: 100%;
}

/* === HEADER VE MOBİL UYUMLULUK - FİNAL VERSİYON === */

/* --- MASAÜSTÜ HEADER TASARIMI (TEMEL) --- */
.main-nav {
    background-color: var(--foreground);
    border-bottom: 1px solid var(--border);
    height: 61px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: fixed; top: 0; left: 0;
    width: 100%; box-sizing: border-box; z-index: 1000;
}
.nav-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.nav-links-container {
    display: flex;
    align-items: center;
    width: 100%;
}
.nav-left, .nav-center, .nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.nav-center {
    flex-grow: 1; /* Ortadaki linkler boşluğu doldursun */
    margin-left: 20px;
}
.mobile-menu-toggle { display: none; } /* Hamburger menüyü masaüstünde gizle */

/* --- MOBİL GÖRÜNÜM (992px ve altı) --- */
@media (max-width: 992px) {
    /* Hamburger Menü Butonu */
    .mobile-menu-toggle {
        display: flex; flex-direction: column; justify-content: space-around;
        width: 30px; height: 24px; background: transparent; border: none;
        cursor: pointer; padding: 0; z-index: 1100;
        order: 3; /* Sağ köşede kalması için */
    }
    .hamburger-line {
        width: 100%; height: 3px; background-color: var(--text-primary);
        border-radius: 10px; transition: all 0.3s ease-in-out;
    }
    .mobile-menu-toggle.is-open .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
    .mobile-menu-toggle.is-open .hamburger-line:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.is-open .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

    /* Açılır Mobil Menü Konteyneri */
    .nav-links-container {
        display: none; /* Varsayılan olarak gizli */
        position: fixed;
        top: 61px;
        left: 0;
        width: 100%;
        height: calc(100vh - 61px);
        background-color: var(--foreground);
        flex-direction: column;
        align-items: flex-start; /* Linkleri sola yasla */
        padding: 20px;
        box-sizing: border-box;
        overflow-y: auto;
    }
    .nav-links-container.is-open { display: flex; }

    /* Mobil Menü İçeriği */
    .nav-center, .nav-right {
        flex-direction: column;
        width: 100%;
        align-items: flex-start; /* Linkleri sola yasla */
        gap: 15px;
    }
    .nav-right {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border);
    }
    .live-search-container { width: 100%; }
    #live-search-input { width: 100%; box-sizing: border-box; }
}

/* === ANA SAYFA PARÇACIK EFEKTİ STİLLERİ === */

.hero-section {
    position: relative; /* İçindeki animasyon tuvalini konumlandırmak için */
    overflow: hidden; /* Taşmaları engelle */
    background-color: var(--background); /* Animasyon yüklenene kadar arka plan rengi */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* İçeriğin arkasında, arka planın önünde */
}

/* Mevcut .hero-content'i animasyonun üzerine getirelim */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Mevcut .animated-gradient stilini daha genel hale getirelim */
.animated-gradient-background {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
}
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* === DOSYA YÖNETİCİSİ STİLLERİ === */
.file-manager {
    padding: 10px;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: var(--background);
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--text-primary);
    text-align: center;
    transition: all 0.2s ease;
}

.file-item:hover {
    background-color: var(--foreground);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.file-icon {
    font-size: 48px;
    line-height: 1;
}

.file-item.folder .file-icon {
    color: #74aeda;
}

/* Klasör rengi */
.file-name {
    margin-top: 10px;
    font-size: 14px;
    word-break: break-word;
}


/* === KANBAN GÖREV PANOSU STİLLERİ === */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.kanban-column {
    background-color: var(--background);
    border-radius: var(--border-radius);
    padding: 15px;
}
.column-title {
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
    margin: 0 0 20px 0;
}
.task-list {
    min-height: 400px; /* Sütunlar boşken bile yer kaplasın */
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.task-card {
    padding: 15px;
    cursor: grab;
    user-select: none;
}
.task-card:active {
    cursor: grabbing;
}
.task-card-title {
    font-weight: 500;
    margin: 0 0 15px 0;
}
.task-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
}
.task-due-date {
    font-weight: bold;
}
/* Sürükleme efekti için */
.blue-background-class {
    background-color: rgba(var(--accent-rgb), 0.1);
    border: 1px dashed var(--accent);
}
