* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f6fb;
    color: #1f2937;
}

.topbar {
    background: #111827;
    color: white;
    padding: 22px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar h1 {
    margin: 0;
    font-size: 26px;
}

.topbar p {
    margin: 6px 0 0;
    color: #d1d5db;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.logout-btn {
    background: #ef4444;
    color: white;
    padding: 9px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
}

.logout-btn:hover {
    background: #dc2626;
}

.panel-btn {
    background: #2563eb;
    color: white;
    padding: 9px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
}

.panel-btn:hover {
    background: #1d4ed8;
}

.container {
    max-width: 1150px;
    margin: 30px auto;
    padding: 0 18px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.stat-card {
    background: white;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    border-left: 5px solid #6b7280;
}

.stat-card span {
    display: block;
    color: #6b7280;
    font-size: 14px;
}

.stat-card strong {
    display: block;
    font-size: 30px;
    margin-top: 8px;
}

.stat-card.pending {
    border-left-color: #f59e0b;
}

.stat-card.progress {
    border-left-color: #3b82f6;
}

.stat-card.done {
    border-left-color: #10b981;
}

.stat-card.cancelled {
    border-left-color: #ef4444;
}

.form-card,
.filter-card,
.tasks {
    background: white;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

h2 {
    margin-top: 0;
}

.task-form label,
.login-box label,
.admin-filter-form label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
    font-size: 14px;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    font-size: 15px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

textarea {
    resize: vertical;
}

input[readonly],
textarea[readonly],
select:disabled {
    background: #f3f4f6;
    color: #6b7280;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.three-columns {
    grid-template-columns: 2fr 1fr 1fr;
}

.task-form button,
.login-box button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 15px;
    margin-top: 14px;
}

.task-form button:hover,
.login-box button:hover {
    background: #1d4ed8;
}

.form-description {
    margin-top: -8px;
    margin-bottom: 18px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filters a {
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-size: 14px;
}

.filters a.active {
    background: #2563eb;
    color: white;
}

.task-card {
    border: 1px solid #e5e7eb;
    border-left: 6px solid #6b7280;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
}

.task-card.status-beklemede {
    border-left-color: #f59e0b;
}

.task-card.status-devam_ediyor {
    border-left-color: #3b82f6;
}

.task-card.status-tamamlandi {
    border-left-color: #10b981;
    opacity: 0.9;
}

.task-card.status-iptal {
    border-left-color: #ef4444;
    opacity: 0.8;
}

.task-card h3 {
    margin: 0 0 8px;
}

.task-card p {
    margin: 0 0 12px;
    color: #4b5563;
}

.task-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 13px;
}

.badge {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.priority-dusuk {
    background: #dbeafe;
    color: #1d4ed8;
}

.priority-normal {
    background: #e5e7eb;
    color: #374151;
}

.priority-yuksek {
    background: #fee2e2;
    color: #b91c1c;
}

.badge.status {
    background: #ecfdf5;
    color: #047857;
}

.badge.assigned {
    background: #ede9fe;
    color: #5b21b6;
}

.role-admin {
    background: #fee2e2;
    color: #991b1b;
}

.role-user {
    background: #dbeafe;
    color: #1d4ed8;
}

.task-actions {
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.edit-action-btn {
    width: 100%;
    background: #10b981;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 9px;
    cursor: pointer;
}

.edit-action-btn:hover {
    background: #059669;
}

.delete-btn {
    width: 100%;
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 9px;
    cursor: pointer;
}

.delete-btn:hover {
    background: #dc2626;
}

.delete-btn.small {
    padding: 8px 11px;
    font-size: 13px;
}

.empty {
    padding: 30px;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 12px;
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #111827, #2563eb);
}

.login-box {
    width: 380px;
    background: white;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.login-box h1 {
    margin: 0;
    font-size: 30px;
}

.login-box p {
    margin-top: 8px;
    color: #6b7280;
}

.login-box input {
    margin-bottom: 14px;
}

.alert {
    padding: 11px 13px;
    border-radius: 9px;
    margin-bottom: 15px;
    font-size: 14px;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.login-info {
    margin-top: 16px;
    text-align: center;
    color: #6b7280;
}

.admin-filter-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-buttons button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 11px 16px;
    border-radius: 9px;
    cursor: pointer;
}

.filter-buttons button:hover {
    background: #1d4ed8;
}

.filter-buttons a {
    background: #e5e7eb;
    color: #374151;
    padding: 11px 16px;
    border-radius: 9px;
    text-decoration: none;
}

.filter-buttons a:hover {
    background: #d1d5db;
}

.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1050px;
}

.admin-table th,
.admin-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.admin-table th {
    background: #f9fafb;
    color: #374151;
    font-weight: bold;
}

.admin-table tr:hover {
    background: #f9fafb;
}

.admin-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.edit-btn {
    background: #10b981;
    color: white;
    padding: 8px 11px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
}

.edit-btn:hover {
    background: #059669;
}

.cancel-link {
    display: inline-block;
    margin-left: 10px;
    background: #e5e7eb;
    color: #374151;
    padding: 11px 16px;
    border-radius: 9px;
    text-decoration: none;
}

.cancel-link:hover {
    background: #d1d5db;
}

/* Personel Yönetimi - Şifre Değiştirme Formu */

.inline-password-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inline-password-form input {
    min-width: 150px;
    padding: 8px 10px;
    font-size: 14px;
}

.inline-password-form button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 11px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.inline-password-form button:hover {
    background: #1d4ed8;
}

.muted {
    color: #9ca3af;
    font-size: 13px;
}

/* Admin Onayla ve Ata Formu */

.approve-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.approve-form select {
    min-width: 160px;
    padding: 8px 10px;
    font-size: 14px;
}

.approve-form button {
    background: #10b981;
    color: white;
    border: none;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.approve-form button:hover {
    background: #059669;
}

/* Bildirim Popup */

.notification-popup {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.notification-box {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.35);
    animation: popupIn 0.25s ease;
}

.notification-box h3 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 24px;
}

.notification-box p {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: bold;
    color: #2563eb;
}

.notification-box small {
    display: block;
    color: #4b5563;
    line-height: 1.5;
}

.notification-actions {
    margin-top: 18px;
    text-align: right;
}

.notification-actions button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 11px 18px;
    border-radius: 9px;
    cursor: pointer;
}

.notification-actions button:hover {
    background: #1d4ed8;
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobil Uyumluluk */

@media screen and (max-width: 900px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row,
    .three-columns,
    .admin-filter-form {
        grid-template-columns: 1fr;
    }

    .task-card {
        flex-direction: column;
    }

    .task-actions {
        width: 100%;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .admin-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .edit-btn,
    .delete-btn.small {
        width: 100%;
        text-align: center;
    }

    .inline-password-form {
        flex-direction: column;
        align-items: stretch;
    }

    .inline-password-form input,
    .inline-password-form button {
        width: 100%;
    }

    .approve-form {
        flex-direction: column;
        align-items: stretch;
    }

    .approve-form select,
    .approve-form button {
        width: 100%;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-buttons button,
    .filter-buttons a {
        width: 100%;
        text-align: center;
    }
}

@media screen and (max-width: 520px) {
    .stats {
        grid-template-columns: 1fr;
    }

    .login-box {
        width: calc(100% - 30px);
    }

    .topbar {
        padding: 18px;
    }

    .container {
        margin: 20px auto;
        padding: 0 12px;
    }

    .form-card,
    .filter-card,
    .tasks {
        padding: 16px;
    }
}
.payment-filter-form {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr auto;
}

.payment-admin-table {
    min-width: 1450px;
}

@media screen and (max-width: 1200px) {
    .payment-filter-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 900px) {
    .payment-filter-form {
        grid-template-columns: 1fr;
    }
}
.four-columns {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.offer-items-table {
    min-width: 950px;
}

.offer-items-table input,
.offer-items-table select {
    min-width: 120px;
}

.offer-items-table td:first-child input {
    min-width: 260px;
}

.line-total {
    font-weight: bold;
    color: #111827;
    white-space: nowrap;
}

.payment-status-paid {
    background: #dcfce7;
    color: #166534;
}

.payment-status-unpaid {
    background: #fee2e2;
    color: #991b1b;
}

.payment-status-waiting {
    background: #fef3c7;
    color: #92400e;
}

@media screen and (max-width: 1000px) {
    .four-columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 700px) {
    .four-columns {
        grid-template-columns: 1fr;
    }
}
.two-columns {
    grid-template-columns: 1fr 1fr;
}

input[type="color"] {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

@media screen and (max-width: 800px) {
    .two-columns {
        grid-template-columns: 1fr;
    }
}
.agenda-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.agenda-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 5px solid #2563eb;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.agenda-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.agenda-card h3 {
    margin: 0 0 6px;
    color: #111827;
}

.agenda-date {
    margin: 0;
    color: #2563eb;
    font-weight: 600;
}

.agenda-description {
    margin-top: 14px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    color: #374151;
    line-height: 1.5;
}

.agenda-meta {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #4b5563;
    font-size: 14px;
}

.agenda-actions {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.small-btn {
    display: inline-block;
    border: none;
    background: #2563eb;
    color: white;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

.small-btn.danger {
    background: #dc2626;
}

.status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-completed {
    background: #dcfce7;
    color: #166534;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

@media screen and (max-width: 700px) {
    .agenda-card-header {
        flex-direction: column;
    }

    .agenda-meta {
        flex-direction: column;
        gap: 6px;
    }
}
