/* Türk Telekom Renk Paleti */
:root {
    --tt-lacivert: #003078;
    --tt-lacivert-koyu: #002050;
    --tt-lacivert-acik: #0040A0;
    --tt-kirmizi: #E2001A;
    --tt-kirmizi-koyu: #B80015;
    --tt-mavi: #0066CC;
    --tt-mavi-koyu: #0052A3;
    --tt-gri: #666666;
    --tt-gri-acik: #F5F5F5;
    --tt-beyaz: #FFFFFF;
    --tt-siyah: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--tt-gri-acik) 0%, #E8E8E8 100%);
    color: var(--tt-siyah);
    line-height: 1.6;
}

/* Login Sayfası */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--tt-lacivert);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: var(--tt-beyaz);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.tt-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.logo-section h1 {
    color: var(--tt-lacivert);
    font-size: 28px;
    margin-bottom: 5px;
}

.logo-section h2 {
    color: var(--tt-gri);
    font-size: 16px;
    font-weight: normal;
}

.login-form {
    margin-top: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--tt-gri);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--tt-lacivert);
}

.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--tt-gri);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.checkbox-label span {
    user-select: none;
}

.form-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background: var(--tt-beyaz);
    cursor: pointer;
    transition: border-color 0.3s;
}

.form-select:focus {
    outline: none;
    border-color: var(--tt-lacivert);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--tt-lacivert);
    color: var(--tt-beyaz);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--tt-lacivert-koyu);
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

/* Header */
.header {
    background: var(--tt-lacivert);
    color: var(--tt-beyaz);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header h1 {
    font-size: 24px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-logout, .btn-nav {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--tt-beyaz);
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-logout:hover, .btn-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--tt-beyaz);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.stat-icon.mobil {
    background: #4CAF50;
}

.stat-icon.dsl {
    background: #2196F3;
}

.stat-icon.tvbu {
    background: #FF9800;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--tt-gri);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--tt-siyah);
}

.stat-kdy {
    margin-top: 5px;
    font-size: 11px;
    color: var(--tt-gri);
}

.stat-kdy small {
    color: var(--tt-gri);
}

/* Genel KDY İstatistikleri */
.genel-kdy-bar {
    background: var(--tt-lacivert);
    color: var(--tt-beyaz);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.toplam-item.total .genel-kdy-bar {
    margin-top: 15px;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.genel-kdy-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 15px;
}

.genel-kdy-label {
    font-weight: 500;
}

.genel-kdy-value {
    font-weight: bold;
    font-size: 20px;
}

.genel-kdy-yuzde {
    font-size: 15px;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* Personel Section */
.personel-section h2 {
    margin-bottom: 20px;
    color: var(--tt-siyah);
}

.personel-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.filtreler {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.arama-kutusu input {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    width: 200px;
    transition: border-color 0.3s;
}

.arama-kutusu input:focus {
    outline: none;
    border-color: var(--tt-lacivert);
}

.kategori-filtre select {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: var(--tt-beyaz);
    cursor: pointer;
    transition: border-color 0.3s;
}

.kategori-filtre select:focus {
    outline: none;
    border-color: var(--tt-lacivert);
}

.kategori-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--tt-lacivert);
    color: var(--tt-beyaz);
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 10px;
}

.personel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stat-item-group {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.stat-item-group:last-child {
    border-bottom: none;
}

.stat-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.stat-detaylar {
    margin-top: 5px;
    padding-left: 10px;
}

.stat-detay-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 12px;
}

.detay-text {
    color: var(--tt-gri);
    flex: 1;
}

.btn-sil {
    background: #f44336;
    color: var(--tt-beyaz);
    border: none;
    border-radius: 3px;
    width: 24px;
    height: 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.btn-sil:hover {
    background: #d32f2f;
}

.btn-minus {
    background: #f44336;
    color: var(--tt-beyaz);
    border: none;
    border-radius: 5px;
    width: 28px;
    height: 35px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.btn-minus:hover {
    background: #d32f2f;
    transform: scale(1.05);
}

.btn-minus.mobil {
    border-left: 3px solid #4CAF50;
}

.btn-minus.dsl {
    border-left: 3px solid #2196F3;
}

.btn-minus.tvbu {
    border-left: 3px solid #FF9800;
}

.personel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.personel-card {
    background: var(--tt-beyaz);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.personel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.personel-header h3 {
    color: var(--tt-kirmizi);
    margin-bottom: 15px;
    font-size: 20px;
}

.urun-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.urun-button-group {
    display: flex;
    gap: 5px;
    align-items: center;
}

.btn-urun {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: var(--tt-beyaz);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.btn-urun:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-urun.mobil {
    border-color: #4CAF50;
}

.btn-urun.mobil:hover {
    background: #E8F5E9;
}

.btn-urun.dsl {
    border-color: #2196F3;
}

.btn-urun.dsl:hover {
    background: #E3F2FD;
}

.btn-urun.tvbu {
    border-color: #FF9800;
}

.btn-urun.tvbu:hover {
    background: #FFF3E0;
}

.btn-urun.disabled,
.btn-minus.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-urun.disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-minus.disabled:hover {
    transform: none;
    background: #f44336;
}

.urun-icon {
    font-size: 24px;
    margin-right: 10px;
}

.urun-label {
    flex: 1;
    text-align: left;
    font-weight: 500;
}

.btn-plus {
    font-size: 24px;
    font-weight: bold;
    color: var(--tt-kirmizi);
}

.personel-stats-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.stats-toggle, .eski-satislar-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--tt-gri-acik);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    user-select: none;
    margin-top: 10px;
}

.eski-satislar-toggle {
    background: #f0f0f0;
    border: 1px solid #ddd;
}

.stats-toggle:hover {
    background: #e0e0e0;
}

.stats-toggle-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--tt-lacivert);
}

.stats-toggle-icon {
    font-size: 12px;
    color: var(--tt-gri);
    transition: transform 0.3s;
}

.personel-stats {
    margin-top: 10px;
    max-height: 500px;
    overflow-y: auto;
    transition: max-height 0.3s ease-out, opacity 0.3s;
    opacity: 1;
}

.personel-stats.collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
}

.stats-ozet {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    background: var(--tt-lacivert);
    color: var(--tt-beyaz);
    border-radius: 5px;
    margin-bottom: 8px;
    font-size: 13px;
}

.ozet-urun-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ozet-ikon {
    font-size: 16px;
}

.ozet-text {
    flex: 1;
    font-weight: 500;
    color: var(--tt-beyaz);
}

.stats-detay-kisim {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    opacity: 0;
}

.stats-detay-kisim:not(.collapsed) {
    max-height: 1000px;
    opacity: 1;
    margin-top: 10px;
}

.personel-stats:not(.collapsed) .stats-detay-kisim {
    max-height: 1000px;
    opacity: 1;
    margin-top: 10px;
}

.stats-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.stat-urun {
    color: var(--tt-gri);
}

.stat-sayi {
    font-weight: bold;
    color: var(--tt-kirmizi);
}

/* Duyuru Section */
.duyuru-section {
    background: var(--tt-beyaz);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-height: 600px;
    overflow-y: auto;
}

.duyuru-section h2 {
    margin-bottom: 15px;
    color: var(--tt-siyah);
}

.duyuru-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.duyuru-item {
    padding: 12px;
    background: var(--tt-gri-acik);
    border-radius: 8px;
    border-left: 4px solid var(--tt-kirmizi);
}

.duyuru-time {
    font-size: 12px;
    color: var(--tt-gri);
    margin-bottom: 5px;
}

.duyuru-message {
    font-size: 14px;
    color: var(--tt-siyah);
}

/* Raporlar */
.rapor-header {
    background: var(--tt-beyaz);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rapor-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.rapor-header h2 {
    margin: 0;
    color: var(--tt-siyah);
    flex: 1;
}

.rapor-header-actions {
    display: flex;
    gap: 10px;
}

.btn-excel {
    padding: 10px 20px;
    border: 2px solid #28a745;
    background: #28a745;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-excel:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.rapor-filtreler {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.tarih-secici {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.tarih-input {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    color: var(--tt-siyah);
    background: var(--tt-beyaz);
    cursor: pointer;
    transition: border-color 0.3s;
}

.tarih-input:focus {
    outline: none;
    border-color: var(--tt-lacivert);
}

.tarih-araligi-secici {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.tarih-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tarih-input-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--tt-lacivert);
}

.btn-filtre {
    padding: 10px 20px;
    border: 2px solid var(--tt-kirmizi);
    background: var(--tt-beyaz);
    color: var(--tt-kirmizi);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-filtre:hover {
    background: var(--tt-gri-acik);
}

.btn-filtre.active {
    background: var(--tt-kirmizi);
    color: var(--tt-beyaz);
}

.rapor-content {
    background: var(--tt-beyaz);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rapor-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rapor-toplam {
    padding: 20px;
    padding-top: 15px;
    background: var(--tt-gri-acik);
    border-radius: 10px;
    margin-top: 0;
}

.rapor-toplam h3 {
    margin-bottom: 10px;
    margin-top: 0;
    padding-top: 0;
    color: var(--tt-kirmizi);
}

.toplam-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    padding-top: 0;
}

.rapor-toplam {
    padding: 20px;
    padding-top: 10px;
    background: var(--tt-gri-acik);
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    margin-top: 0;
}

.toplam-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--tt-beyaz);
    border-radius: 8px;
    border-left: 4px solid var(--tt-kirmizi);
}

.toplam-item.total {
    border-left-color: var(--tt-mavi);
    background: linear-gradient(135deg, var(--tt-kirmizi) 0%, var(--tt-mavi) 100%);
    color: var(--tt-beyaz);
}

.toplam-label {
    font-weight: 500;
}

.toplam-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--tt-kirmizi);
}

.toplam-item.total .toplam-value {
    color: var(--tt-beyaz);
}

.rapor-personel h3 {
    margin-bottom: 20px;
    color: var(--tt-kirmizi);
}

.personel-rapor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.personel-rapor-card {
    background: var(--tt-gri-acik);
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid var(--tt-mavi);
}

.personel-rapor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

.personel-rapor-header h4 {
    color: var(--tt-kirmizi);
    font-size: 18px;
}

.personel-toplam {
    font-weight: bold;
    color: var(--tt-mavi);
}

.personel-rapor-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rapor-stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: var(--tt-beyaz);
    border-radius: 5px;
}

.rapor-stat-label {
    font-weight: 500;
}

.rapor-stat-value {
    font-weight: bold;
    color: var(--tt-kirmizi);
}

/* Utility */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--tt-gri);
}

.no-data {
    text-align: center;
    padding: 40px;
    color: var(--tt-gri);
    font-style: italic;
}

.error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.nav-links {
    text-align: center;
    margin-top: 20px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--tt-gri-acik);
}

::-webkit-scrollbar-thumb {
    background: var(--tt-kirmizi);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--tt-kirmizi-koyu);
}

/* Yönetici Form */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--tt-beyaz);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    color: var(--tt-kirmizi);
    margin-bottom: 25px;
    text-align: center;
}

.yonetici-form {
    margin-top: 20px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--tt-gri);
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn-secondary {
    padding: 12px 24px;
    background: var(--tt-gri);
    color: var(--tt-beyaz);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #555;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.yonetici-section {
    background: var(--tt-beyaz);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.yonetici-section h2 {
    margin-bottom: 20px;
    color: var(--tt-siyah);
}

.kategori-item {
    flex-direction: column;
    align-items: flex-start;
}

.kategori-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 8px;
}

.kategori-item .kategori-detay {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 0;
}

.urun-detay-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.kategori-item .urun-detay-item {
    margin-top: 0;
    margin-bottom: 0;
}

.urun-ikon {
    font-size: 16px;
}

.urun-isim {
    flex: 1;
    color: var(--tt-beyaz);
    font-weight: 500;
}

.urun-sayi {
    font-weight: bold;
    font-size: 16px;
    color: var(--tt-beyaz);
}

.urun-kdy {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 8px;
    font-weight: normal;
}

.modal-body .form-group {
    margin-bottom: 15px;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--tt-siyah);
}

.modal-body .form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.modal-body .form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--tt-lacivert);
}

.kategori-item {
    background: var(--tt-lacivert);
    color: var(--tt-beyaz);
    padding: 6px 15px;
    padding-top: 6px;
    padding-bottom: 8px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    display: flex;
    flex-direction: column;
}

.kategori-item .kategori-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0;
    margin-bottom: 0;
    margin-top: 0;
    padding-top: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1;
}

.kategori-item .toplam-label {
    color: var(--tt-beyaz);
    font-size: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    line-height: 1;
    display: block;
}

.kategori-item .toplam-value {
    color: var(--tt-beyaz);
    font-size: 18px;
}

.toplam-item.total {
    background: var(--tt-lacivert-koyu);
    color: var(--tt-beyaz);
    padding: 15px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 15px;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.toplam-item.total .kategori-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
}

.toplam-item.total .toplam-label {
    color: var(--tt-beyaz);
    font-size: 18px;
    font-weight: bold;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    display: block;
}

.toplam-item.total .kategori-detay {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    width: 100%;
    margin-top: 10px;
    box-sizing: border-box;
}

.toplam-item.total .urun-detay-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.toplam-item.total .urun-kdy {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 8px;
    font-weight: normal;
    flex-shrink: 0;
    white-space: nowrap;
}

.toplam-item.total .urun-isim,
.toplam-item.total .urun-sayi {
    flex-shrink: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.kategori-grup {
    margin-bottom: 30px;
}

.kategori-baslik {
    color: var(--tt-lacivert);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tt-lacivert);
    font-size: 20px;
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--tt-beyaz);
    border-radius: 10px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Saha Personel Referans Takip Stilleri */
.saha-personel-stats {
    margin-bottom: 30px;
}

.saha-personel-stats h3 {
    color: var(--tt-kirmizi);
    margin-bottom: 20px;
    font-size: 20px;
}

.saha-personel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.saha-personel-card {
    background: var(--tt-lacivert);
    color: var(--tt-beyaz);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 140px;
    display: flex;
    flex-direction: column;
}

.saha-personel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.saha-personel-header h4 {
    color: var(--tt-beyaz);
    font-size: 16px;
    margin: 0;
    font-weight: 600;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}

.toplam-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: var(--tt-beyaz);
    white-space: nowrap;
    margin-left: 8px;
}

.saha-personel-detay {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.urun-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    flex: 1;
    min-width: 0;
    font-size: 13px;
}

.urun-item .urun-ikon {
    font-size: 16px;
    flex-shrink: 0;
}

.urun-item .urun-isim {
    flex: 1;
    color: var(--tt-beyaz);
    font-size: 13px;
    white-space: nowrap;
}

.urun-item .urun-sayi {
    font-weight: bold;
    font-size: 14px;
    color: var(--tt-beyaz);
    flex-shrink: 0;
}

.genel-toplam-card {
    background: var(--tt-lacivert-koyu);
    color: var(--tt-beyaz);
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.genel-toplam-card h3 {
    color: var(--tt-beyaz);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.toplam-detay {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
}

.toplam-detay .toplam-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    flex: 1;
    min-width: 150px;
}

.toplam-detay .toplam-item .urun-ikon {
    font-size: 18px;
}

.toplam-detay .toplam-item .urun-isim {
    color: var(--tt-beyaz);
    font-size: 14px;
}

.toplam-detay .toplam-item .urun-sayi {
    color: var(--tt-beyaz);
    font-weight: bold;
    font-size: 16px;
}

.toplam-detay .toplam-item.total {
    background: rgba(255, 255, 255, 0.25);
    font-size: 16px;
    padding: 12px 15px;
    flex-basis: 100%;
    margin-top: 5px;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: var(--tt-lacivert);
}

.modal-close {
    font-size: 28px;
    font-weight: bold;
    color: var(--tt-gri);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--tt-siyah);
}

.modal-body {
    padding: 20px;
}

.site-footer {
    background: var(--tt-lacivert);
    color: var(--tt-beyaz);
    text-align: center;
    padding: 15px 20px;
    margin-top: 30px;
    font-size: 13px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.site-footer p {
    margin: 0;
    color: var(--tt-beyaz);
}

.login-body .site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 0;
}

.rapor-secim-container {
    text-align: center;
    padding: 40px 20px;
}

.rapor-secim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.rapor-secim-kart {
    background: var(--tt-beyaz);
    border: 2px solid var(--tt-lacivert);
    border-radius: 10px;
    padding: 30px;
    text-decoration: none;
    color: var(--tt-siyah);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rapor-secim-kart:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 48, 120, 0.3);
    border-color: var(--tt-kirmizi);
}

.rapor-secim-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.rapor-secim-kart h3 {
    color: var(--tt-lacivert);
    margin-bottom: 10px;
}

.rapor-secim-kart p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.performans-filtreler {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.grafik-kart {
    background: var(--tt-beyaz);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.grafik-kart h3 {
    color: var(--tt-lacivert);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.grafik-kart canvas {
    max-height: 400px;
}

.personel-performans-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.personel-performans-header h3 {
    margin: 0;
    flex: 1;
}

.personel-grafik-grup {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.personel-grafik-baslik {
    color: var(--tt-lacivert);
    margin-bottom: 15px;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tt-lacivert);
}

.personel-grafikler-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.personel-grafik-item {
    background: var(--tt-beyaz);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.personel-grafik-item h5 {
    margin: 0 0 10px 0;
    color: var(--tt-lacivert);
    font-size: 14px;
    text-align: center;
}

.personel-grafik-item canvas {
    max-height: 250px;
}

.hedef-bilgi-container {
    padding: 20px;
}

.hedef-bilgi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.hedef-bilgi-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--tt-lacivert);
}

.hedef-urun-icon {
    font-size: 40px;
}

.hedef-urun-bilgi {
    flex: 1;
}

.hedef-urun-isim {
    font-size: 18px;
    font-weight: bold;
    color: var(--tt-lacivert);
    margin-bottom: 8px;
}

.hedef-urun-detay {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hedef-gerceklesen {
    color: #28a745;
    font-weight: 500;
}

.hedef-kalan {
    color: #dc3545;
    font-weight: 500;
}

.hedef-grafikler-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.hedef-grafik-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.hedef-grafik-item h4 {
    margin: 0 0 15px 0;
    color: var(--tt-lacivert);
    font-size: 16px;
}

.hedef-grafik-item canvas {
    max-height: 250px;
}

#gunluk-grafik-container {
    position: relative;
    min-height: 400px;
}

#gunluk-grafik-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Performans Raporları Stilleri */
.performans-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.filtre-bolum {
    background: var(--tt-beyaz);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filtre-grup {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filtre-grup label {
    font-weight: 500;
    color: var(--tt-lacivert);
}

.filtre-grup select,
.filtre-grup input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.urun-butonlari {
    display: flex;
    gap: 10px;
}

.urun-btn {
    padding: 10px 20px;
    border: 2px solid var(--tt-lacivert);
    background: var(--tt-beyaz);
    color: var(--tt-lacivert);
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.urun-btn:hover {
    background: rgba(0, 48, 120, 0.1);
}

.urun-btn.active {
    background: var(--tt-lacivert);
    color: var(--tt-beyaz);
}

.grafik-kart {
    background: var(--tt-beyaz);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.grafik-kart h3 {
    margin: 0 0 20px 0;
    color: var(--tt-lacivert);
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tt-lacivert);
}

.gunluk-grafik-kart .grafik-container {
    height: 350px;
}

.hedef-pasta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pasta-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pasta-item h4 {
    margin: 0 0 15px 0;
    color: var(--tt-lacivert);
    font-size: 16px;
    width: 100%;
}

.pasta-container {
    height: 200px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.pasta-container canvas {
    max-width: 100%;
    max-height: 100%;
}

.hedef-bilgi {
    margin-top: 15px;
    font-size: 16px;
    color: #333;
    width: 100%;
    text-align: center;
}

.hedef-bilgi strong {
    color: #28a745;
    font-size: 20px;
}

.personel-arama {
    margin-bottom: 20px;
}

.personel-arama input {
    width: 100%;
    max-width: 300px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.personel-grafikler {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.personel-kart {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--tt-lacivert);
}

.personel-kart h4 {
    margin: 0 0 15px 0;
    color: var(--tt-lacivert);
    font-size: 16px;
}

.personel-grafikler-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.mini-grafik {
    flex: 1;
    text-align: center;
}

.mini-grafik span:first-child {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
    color: #666;
}

.mini-grafik canvas {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto;
}

.mini-grafik .sayi {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: var(--tt-lacivert);
    margin-top: 5px;
}

.bos-mesaj {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.hedef-ayar-bolum {
    text-align: center;
    margin: 30px 0;
}

.btn-hedef-ayar {
    background: var(--tt-lacivert);
    color: var(--tt-beyaz);
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.btn-hedef-ayar:hover {
    background: #002050;
}

/* Modal Stilleri */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--tt-beyaz);
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: var(--tt-lacivert);
    color: var(--tt-beyaz);
}

.modal-header h3 {
    margin: 0;
}

.modal-kapat {
    font-size: 28px;
    cursor: pointer;
    color: var(--tt-beyaz);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.hedef-form .form-grup {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.hedef-tablo table {
    width: 100%;
    border-collapse: collapse;
}

.hedef-tablo th,
.hedef-tablo td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.hedef-tablo th {
    background: var(--tt-lacivert);
    color: var(--tt-beyaz);
}

.hedef-input {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.btn-iptal {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-kaydet {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .filtre-bolum {
        flex-direction: column;
        align-items: stretch;
    }
    
    .urun-butonlari {
        justify-content: center;
    }
    
    .hedef-pasta-grid {
        grid-template-columns: 1fr;
    }
    
    .personel-grafikler {
        grid-template-columns: 1fr;
    }
    
    .personel-grafikler-row {
        flex-wrap: wrap;
    }
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
}

.btn-secondary {
    background: var(--tt-gri);
    color: var(--tt-beyaz);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #555;
}

