@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* , *::before, *::after {
    box-sizing: border-box;
}

.panel-header .header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background:
        radial-gradient(circle at 0% 0%, rgba(129, 230, 217, 0.16) 0, transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(191, 219, 254, 0.18) 0, transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(196, 181, 253, 0.16) 0, transparent 60%),
        linear-gradient(135deg, #e5e7eb, #f9fafb);
    overflow: hidden;
}

.header-title-block {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
}

.login-card {
    position: relative;
    padding: 26px 24px 22px 24px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(209, 213, 219, 0.9);
    border-radius: 18px;
    background: #f9fafb;
    color: #111827;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(209, 213, 219, 0.85), rgba(229, 231, 235, 0.85));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.login-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
}

.login-logo {
    max-width: 180px;
    width: 100%;
    height: auto;
    display: block;
}

.login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.88rem;
    color: #374151;
}

.login-form input {
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #111827;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.login-form input:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.2);
}

.login-form button {
    margin-top: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #f9fafb;
    font-weight: 600;
    font-size: 0.96rem;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.login-form button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
}

.app-body {
    min-height: 100vh;
    padding: 0 16px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background:
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.18) 0, transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.18) 0, transparent 55%),
        #0f172a;
    background-size: 180% 180%;
    background-position: center top;
    color: #0b1120;
    overflow: hidden;
}

.app-shell {
    width: 100%;
    max-width: 1180px;
    background:
        linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(250, 245, 255, 0.96));
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.55);
    padding: 16px 18px 14px 18px;
    border: 1px solid rgba(191, 219, 254, 0.9);
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Panel padding'i de hesaba katılarak yaklaşık %5 görünür boşluk için ayarlandı */
    margin-top: 3.5vh;
    margin-bottom: 3.5vh;
    height: calc(100vh - 7vh);
}

.panel-header {
    padding-bottom: 4px;
    margin-bottom: 4px;
}

.panel-header .header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.header-title-block {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header-logo {
    height: 40px;
    width: auto;
    display: block;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
}

.header-title-block h1 {
    margin: 0 0 4px 0;
    color: #111827;
    font-size: 1.7rem;
    letter-spacing: 0.01em;
    font-weight: 600;
}

.last-action-bar {
    margin-top: 4px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.96);
    border: 1px solid #e5e7eb;
    font-size: 0.8rem;
    color: #4b5563;
}

.last-action-label {
    font-weight: 500;
    color: #6b7280;
}

.last-action-text {
    font-weight: 500;
    color: #111827;
}

.header-subtitle {
    display: none;
}

.workspace-toolbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 2px;
    margin-bottom: 4px;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.header-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid rgba(129, 140, 248, 0.7);
    background: radial-gradient(circle at 0 0, #6366f1, #8b5cf6);
    color: #e0e7ff;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(129, 140, 248, 0.45);
    transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease, border-color 0.16s ease;
}

.header-add-btn::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23e0e7ff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M5 12h14'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.header-add-btn:hover {
    transform: translateY(-1px);
    background: radial-gradient(circle at 0 0, #818cf8, #4f46e5);
    border-color: rgba(191, 219, 254, 0.9);
    box-shadow: 0 14px 30px rgba(129, 140, 248, 0.85);
}

.logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    border: 1px solid rgba(248, 113, 113, 0.8);
    color: #fee2e2;
    text-decoration: none;
    background: radial-gradient(circle at 0 0, #ef4444, #b91c1c);
    box-shadow: 0 10px 25px rgba(248, 113, 113, 0.55);
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.logout-link:hover {
    transform: translateY(-1px);
    background: radial-gradient(circle at 0 0, #f97373, #dc2626);
    color: #fff7ed;
    border-color: #fecaca;
    box-shadow: 0 14px 32px rgba(248, 113, 113, 0.75);
}

.logout-link::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23fee2e2' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5H7.75A2.75 2.75 0 005 7.75v8.5A2.75 2.75 0 007.75 19h4.5A2.75 2.75 0 0015 16.25V15'/%3E%3Cpath d='M14 7l4 4-4 4'/%3E%3Cpath d='M9.5 11H18'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.ui-toast-root {
    position: fixed;
    right: 18px;
    top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 40;
    align-items: flex-end;
}

.ui-toast {
    min-width: 240px;
    max-width: 320px;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #0f172a;
    background: rgba(248, 250, 252, 0.96);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(226, 232, 240, 0.95);
    backdrop-filter: blur(18px);
    transform: translateY(-8px);
    opacity: 0;
    animation: toastIn 0.2s ease-out forwards;
    transition: opacity 0.22s ease-out, transform 0.22s ease-out;
}

.ui-toast-info {
    border-color: rgba(59, 130, 246, 0.7);
}

.ui-toast-error {
    border-color: rgba(248, 113, 113, 0.8);
}

.ui-toast-message {
    flex: 1;
}

.ui-toast-dismiss {
    background: transparent;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 2px 8px;
    font-size: 0.78rem;
    cursor: pointer;
    color: #4b5563;
}

.ui-toast-dismiss:hover {
    border-color: rgba(148, 163, 184, 0.8);
}

@keyframes toastIn {
    from {
        transform: translateY(-8px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ui-toast-leave {
    opacity: 0;
    transform: translateY(-4px);
}

/* Confirm ve edit modalları ortak stil */
.ui-confirm-root {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 45;
}

.ui-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(3px);
}

.ui-confirm-card {
    position: relative;
    z-index: 1;
    max-width: 420px;
    width: 100%;
    padding: 16px 16px 14px 16px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid #e5e7eb;
    color: #111827;
}

.ui-confirm-card p {
    margin: 0 0 12px 0;
    font-size: 0.94rem;
}

.ui-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.ui-confirm-actions button {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    font-size: 0.86rem;
    cursor: pointer;
}

.ui-confirm-actions button.primary {
    border-color: #111827;
    background: #111827;
    color: #f9fafb;
}

.ui-confirm-actions button.primary-danger {
    border-color: #b91c1c;
    background: #dc2626;
    color: #fef2f2;
}

.ui-edit-heading {
    margin: 0 0 10px 0;
    font-size: 1rem;
}

.ui-edit-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.ui-edit-form input,
.ui-edit-form select {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    font-size: 0.9rem;
    outline: none;
}

.ui-edit-form input:focus,
.ui-edit-form select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.2);
    background: #ffffff;
}

/* Yeni talep oluştur modalini daha büyük ve görsel olarak zengin yap */
#ui-add-root .ui-confirm-card {
    max-width: 520px;
    padding: 16px 18px 14px 18px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    border-color: rgba(209, 213, 219, 0.9);
}

#ui-add-root .ui-edit-heading {
    font-size: 1rem;
    margin-bottom: 8px;
}

.ui-add-heading {
    font-weight: 600;
    color: #111827;
}

#ui-add-root .ui-edit-form {
    margin-bottom: 10px;
    gap: 7px;
}

.platform-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.platform-option {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.86rem;
    color: #374151;
}

.platform-option input {
    margin: 0;
}

.platform-group-pills .platform-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.platform-group-pills .platform-option span {
    padding: 4px 10px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-size: 0.8rem;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.platform-group-pills .platform-option input:checked + span {
    background: #111827;
    color: #f9fafb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.35);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 6px 0 4px;
}

.stat-card {
    position: relative;
    padding: 6px 8px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background-color: #eef2ff;
}

.stat-card-total .stat-icon-total {
    background-color: #e0ecff;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%233b82f6' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19h16'/%3E%3Crect x='6' y='11' width='3' height='5.5' rx='0.8'/%3E%3Crect x='10.5' y='9' width='3' height='7.5' rx='0.8'/%3E%3Crect x='15' y='7' width='3' height='9.5' rx='0.8'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.stat-card-total .stat-value {
    color: #4f46e5;
}

.stat-card-total {
    background: #e5f0ff;
    border-color: #bfdbfe;
}

.stat-card-done {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.stat-card-done .stat-icon-done {
    background-color: #bbf7d0;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2316a34a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.25'/%3E%3Cpath d='M8.5 12.5l2.25 2.25L15.5 10'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.stat-card-done .stat-value {
    color: #16a34a;
}

.stat-card-pending {
    background: #fefce8;
    border-color: #fde68a;
}

.stat-card-pending .stat-icon-pending {
    background-color: #fef3c7;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23b45309' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.25'/%3E%3Cpath d='M12 8v4.2L14.25 15'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.stat-card-pending .stat-value {
    color: #b45309;
}

.stat-card-failed {
    background: #fef2f2;
    border-color: #fecaca;
}

.stat-card-failed .stat-icon-failed {
    background-color: #fee2e2;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23b91c1c' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.25'/%3E%3Cpath d='M9.75 9.75L14.25 14.25M14.25 9.75L9.75 14.25'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.stat-card-failed .stat-value {
    color: #b91c1c;
}

.stat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    font-size: 0.76rem;
    text-transform: none;
    letter-spacing: 0.02em;
    color: #6b7280;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.panel-toolbar .toolbar-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    padding: 10px 14px;
}

#search-input {
    width: 100%;
    padding: 9px 12px 9px 32px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 0.96rem;
    background: #ffffff;
    color: #111827;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s, transform 0.1s ease;
}

#search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.25);
    background: #ffffff;
}

.toolbar-search {
    position: relative;
    flex: 1 1 260px;
}

.toolbar-search::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    opacity: 0.6;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='7.25' cy='7.25' r='4.75' stroke='%239CA3AF' stroke-width='1.5'/%3E%3Cpath d='M10.5 10.5L13 13' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    flex: 0 0 auto;
}

.filter-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 2px;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.filter-tabs button {
    border-radius: 999px;
    border: none;
    padding: 6px 14px;
    font-size: 0.85rem;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.1s ease;
}

.filter-tabs button.active {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.filter-tabs button:hover {
    color: #e5e7eb;
}

.filters select {
    min-width: 120px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    font-size: 0.86rem;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.filters select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.25);
    background: #ffffff;
}

.file-upload {
    display: none; /* TXT içe aktarma arayüzünü görünümden kaldırıyoruz */
}

.file-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: radial-gradient(circle at top left, #6366f1, #22c55e);
    color: #f9fafb;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    box-shadow: none;
    transition: background 0.16s ease, filter 0.16s ease;
}

.file-label:hover {
    filter: brightness(1.05);
}

.toolbar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
}

.toolbar-row-main {
    gap: 12px;
}

.toolbar-row-actions {
    justify-content: flex-end;
}

.toolbar-danger {
    background: #fef2f2;
    color: #b91c1c;
    border-radius: 999px;
    border: 1px solid #fecaca;
    padding: 7px 15px;
    font-size: 0.86rem;
    cursor: pointer;
    font-weight: 500;
    box-shadow: none;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
    white-space: nowrap;
    flex: 0 0 auto;
}

.toolbar-danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.add-task {
    margin-bottom: 18px;
}

.main-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    min-height: 0;
}

.main-column {
    min-width: 0;
}

.main-column-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.panel-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    border: 1px solid rgba(219, 234, 254, 0.8);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    padding: 10px 12px 8px 12px;
}

.form-card {
    height: 100%;
}

.list-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.list-header-center {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.list-header-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-wrap: nowrap;
}

.platform-selector h2 {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
}

.platform-selector p {
    margin: 0 0 10px 0;
    font-size: 0.86rem;
    color: #6b7280;
}

.platform-toggle-group {
    display: inline-flex;
    gap: 6px;
    padding: 3px;
    border-radius: 999px;
    background: #eef2ff;
    border: 1px solid #e5e7eb;
}

.platform-toggle {
    border: none;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.82rem;
    cursor: pointer;
    background: transparent;
    color: #4b5563;
    transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.08s ease;
}

.platform-toggle.active {
    background: #ffffff;
    color: #1d4ed8;
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.35);
}

.platform-toggle:hover {
    transform: translateY(-0.5px);
}

.list-header-text h2 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.list-header-text p {
    margin: 0;
    font-size: 0.86rem;
    color: #6b7280;
}

.list-search {
    max-width: 320px;
    flex: 0 1 320px;
    width: 100%;
}

.list-category-select {
    min-width: 120px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    font-size: 0.86rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    position: relative;
    z-index: 5;
}

.list-category-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.25);
    background: #ffffff;
}

.status-filters {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 2px;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.list-card {
    position: relative;
}

.status-filter {
    border: none;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.78rem;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.1s ease;
}

.status-filter:hover {
    transform: translateY(-0.5px);
}

.status-filter.active[data-status="Tamamlandı"] {
    background: #dcfce7;
    color: #166534;
    box-shadow: 0 1px 2px rgba(22, 163, 74, 0.18);
}

.status-filter.active[data-status="Tamamlanamadı"] {
    background: #fee2e2;
    color: #b91c1c;
    box-shadow: 0 1px 2px rgba(220, 38, 38, 0.18);
}

.status-filter.active[data-status="Bekliyor"] {
    background: #fef9c3;
    color: #92400e;
    box-shadow: 0 1px 2px rgba(217, 119, 6, 0.18);
}

.task-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.form-field {
    display: flex;
}

.form-field.full {
    grid-column: 1 / -1;
}

.field-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    font-size: 0.8rem;
    color: #6b7280;
}

.field-error {
    margin-top: 2px;
    font-size: 0.78rem;
    color: #b91c1c;
}

.field-error:empty {
    display: none;
}

.input-error {
    border-color: #fca5a5 !important;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.4);
}

.task-form input,
.task-form select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.94rem;
    background: #ffffff;
    color: #111827;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.task-form input::placeholder,
.task-form select::placeholder {
    color: #9ca3af;
}

.task-form input:focus,
.task-form select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.25);
    background: #ffffff;
}

.form-actions {
    justify-content: flex-end;
    align-items: stretch;
}

.form-actions .primary {
    width: auto;
}

.task-form button.primary {
    background: #111827;
    color: #f9fafb;
    border: none;
    border-radius: 999px;
    padding: 9px 22px;
    font-size: 0.96rem;
    cursor: pointer;
    font-weight: 500;
    box-shadow: none;
    transition: background 0.16s ease, color 0.16s ease;
}

.task-form button.primary:hover {
    background: #111827;
    filter: brightness(1.02);
}

.group-toggle {
    margin: 0;
    font-size: 0.88rem;
    color: #9ca3af;
}

.toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-visual {
    width: 34px;
    height: 18px;
    border-radius: 999px;
    background: #e5e7eb;
    border: 1px solid #d1d5db;
    position: relative;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.toggle-visual::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.toggle-input:checked + .toggle-visual {
    background: #4f46e5;
    border-color: #4338ca;
}

.toggle-input:checked + .toggle-visual::before {
    transform: translateX(14px);
    background: #f9fafb;
    box-shadow: 0 0 0 2px rgba(191, 219, 254, 0.5);
}

.toggle-text {
    font-size: 0.86rem;
}

#task-list-section {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.task-group {
    margin-bottom: 20px;
}

.task-group-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
    color: #1d4ed8;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 12px 8px 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    gap: 10px;
    margin-bottom: 2px;
    position: relative;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.4s ease;
}

.task-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    border-radius: 12px 0 0 12px;
    background: #e5e7eb;
}

.task-card:hover {
    border-color: #cbd5f5;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.task-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
    margin-right: 6px;
}

.task-title {
    font-size: 0.84rem;
    color: #0f172a;
    font-weight: 500;
    word-break: break-word;
    display: flex;
    align-items: center;
}

.task-card.status-doing::before {
    background: #facc15;
}

.task-card.status-completed::before {
    background: #16a34a;
}

.task-card.status-failed::before {
    background: #ef4444;
}

.task-card.status-doing .task-checkbox {
    accent-color: #eab308;
}

.task-card.status-completed .task-checkbox {
    accent-color: #16a34a;
}

.task-card.status-failed .task-checkbox {
    accent-color: #dc2626;
}

/* Duruma göre kalıcı, soft kart renkleri */
.task-card.status-doing {
    background: #fffbeb; /* soft sarı */
    border-color: #fef3c7;
}

.task-card.status-completed {
    background: #ecfdf3; /* soft yeşil */
    border-color: #bbf7d0;
}

.task-card.status-failed {
    background: #fef2f2; /* soft kırmızı */
    border-color: #fecaca;
}

.task-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

.task-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.task-created-at {
    font-size: 0.78rem;
    color: #9ca3af;
    white-space: nowrap;
}

.task-note {
    margin-top: 2px;
    margin-left: 24px; /* checkbox genisligi (18px) + aralik (6px) kadar kaydir, baslikla hizala */
    font-size: 0.85rem;
    color: #6b7280;
    word-break: break-word;
}

.task-category {
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.78rem;
    margin-right: 4px;
    font-weight: 500;
}

.task-platform {
    background: #f3f4f6;
    color: #374151;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.78rem;
    margin-right: 4px;
}

.task-status {
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.78rem;
    margin-right: 4px;
    border: 1px solid transparent;
    background: #f3f4f6;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
}

.task-status.status-pending {
    background: #f3f4f6;
    color: #374151;
}

.task-status.status-doing {
    background: #fef9c3;
    color: #92400e;
}

.task-status.status-completed {
    background: #ecfdf3;
    color: #166534;
}

.task-status.status-failed {
    background: #fee2e2;
    color: #b91c1c;
}

.task-actions {
    display: flex;
    gap: 6px;
}

.task-actions button {
    background: transparent;
    border: 1px solid transparent;
    color: #4b5563;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 3px 9px;
    border-radius: 999px;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.task-actions button:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.task-actions .task-delete-btn {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.task-actions .task-delete-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.task-actions .task-edit-btn {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #374151;
}

.task-actions .task-edit-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #111827;
}

.task-actions .task-fail-btn {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
    font-weight: 600;
    padding-inline: 8px;
}

.task-actions .task-fail-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.empty-state {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 14px;
    border: 1px dashed #e5e7eb;
    background: #f3f4f6;
    color: #6b7280;
    padding: 24px 16px;
    position: relative;
    overflow: hidden;
    max-width: 520px;
    margin: 40px auto 0 auto;
}

.empty-state-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.8) 0, transparent 58%), #eef2ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon-svg {
    width: 36px;
    height: 36px;
}

.empty-state h3 {
    margin: 6px 0 4px;
    font-size: 1.02rem;
    color: #111827;
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .task-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .list-header {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .list-header-center {
        order: 2;
        justify-content: flex-start;
    }

    .list-header-filters {
        order: 3;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .panel-toolbar .toolbar-card {
        padding: 8px 10px;
    }

    .toolbar-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .toolbar-row-main {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .filters {
        justify-content: flex-start;
    }

    .toolbar-danger {
        align-self: flex-end;
    }
}

@media (max-width: 600px) {
    body {
        padding: 16px 8px;
    }

    header h1 {
        font-size: 1.4rem;
    }

    .stats {
        font-size: 0.85rem;
        gap: 6px;
    }

    .stats div {
        min-width: 120px;
        padding-inline: 10px;
    }

    .app-shell {
        padding: 18px 14px 14px 14px;
        border-radius: 20px;
    }

    .task-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .task-title,
    .task-note {
        min-width: 100%;
    }

    /* Mobilde header ve toolbar'ı alta alta topla */
    .panel-header .header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .workspace-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .platform-selector {
        width: 100%;
    }

    .platform-toggle-group {
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-start;
    }

    /* Liste header ve filtreleri dar ekranda dikey hizala */
    .list-header {
        align-items: stretch;
    }

    .list-header-center {
        order: 2;
        width: 100%;
        justify-content: flex-start;
        margin-top: 4px;
    }

    .list-header-filters {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px;
    }

    .list-search {
        max-width: none;
        flex: 1 1 100%;
    }

    .list-category-select {
        flex: 1 1 150px;
        width: 100%;
    }

    .status-filters {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    /* Kart içeriğini mobilde blok blok göster */
    .task-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .task-meta {
        margin-top: 2px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .task-actions {
        margin-top: 4px;
        flex-wrap: wrap;
    }
}
