/* Deneyim Gelişim Tahsilat Sistemi - Style.css */

/* Yüzde stilleri */
.yuzde-yuksek {
    color: #ffffff;
    background-color: rgba(220, 20, 60, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
}

.yuzde-orta {
    color: #ffffff;
    background-color: rgba(139, 0, 0, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
}

.yuzde-dusuk {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Ekip tahsilat yüzde barları */
.yuzde-bar-container {
    width: 100%;
    background-color: #f0f0f0;
    border-radius: 4px;
    height: 20px;
    margin-top: 5px;
    overflow: hidden;
}

.yuzde-bar {
    height: 100%;
    text-align: center;
    line-height: 20px;
    color: white;
    font-weight: bold;
    transition: width 0.9s ease-in-out;
    background-color: #000000; /* default color in black theme */
}

.yuzde-bar-ekip-a { background-color: #dc143c; /* Ana kırmızı */ }
.yuzde-bar-ekip-b { background-color: #b22222; /* Koyu kırmızı ton */ }
.yuzde-bar-ekip-c { background-color: #8b0000; /* Açık kırmızı ton */ }
.yuzde-bar-ekip-d { background-color: #cd5c5c; /* Farklı kırmızı ton */ }
.yuzde-bar-ekip-a {
    background-color: #dc143c; /* Ana kırmızı */
}

.yuzde-bar-ekip-b {
    background-color: #b22222; /* Koyu kırmızı ton */
}

.yuzde-bar-ekip-c {
    background-color: #8b0000; /* Açık kırmızı ton */
}

.yuzde-bar-ekip-d {
    background-color: #cd5c5c; /* Farklı kırmızı ton */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

/* Index sayfası: zemin saf beyaz */
.index-page {
    background-color: #ffffff;
    color: #333333;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #dc143c, #000000);
    padding: 15px 20px;
    margin-bottom: 20px;
    border-bottom: 3px solid #dc143c;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    width: 40px;
    height: auto;
    margin-right: 10px;
}

.header-logo h1 {
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
}

.panel-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #dc143c, #000000);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.panel-btn:hover {
    background: linear-gradient(135deg, #dc143c, #000000);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Dashboard Cards */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.card-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, #dc143c, #000000);
    padding: 12px;
    border-radius: 12px 12px 0 0;
    margin: -20px -20px 15px -20px;
}

.card-value {
    font-size: 36px;
    font-weight: bold;
    color: #000000;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Bugünkü Tahsilat Card */
.card.bugunTahsilat {
    background-color: #5fad1f;
    color: white;
}

.card.bugunTahsilat .card-title {
    background-color: #5fad1f;
}

.card.bugunTahsilat .card-value {
    color: white;
}

/* Toplam Tahsilat Card */
.card.toplamTahsilat {
    background-color: #1b5fb9;
    color: white;
}

.card.toplamTahsilat .card-title {
    background-color: #8b0000;
}

.card.toplamTahsilat .card-value {
    color: white;
}

/* Table Containers */
.table-container {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.table-container:hover {
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.table-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #000000;
    border-bottom: 2px solid #dc143c;
    padding-bottom: 10px;
    font-weight: 600;
}

/* Form Elemanları */
input[type="text"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus {
    border-color: #dc143c;
    box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.2);
    outline: none;
}

button, 
input[type="submit"] {
    padding: 12px 20px;
    background: linear-gradient(135deg, #dc143c, #000000);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover,
input[type="submit"]:hover {
    background: linear-gradient(135deg, #dc143c, #000000);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #ffffff;
    font-weight: bold;
    color: #000000;
}

tr:hover {
    background-color: #f8f9fa;
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 992px) {
    .dashboard {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .panel-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .card-value {
        font-size: 28px;
    }
    
    .table-container {
        padding: 15px;
        overflow-x: auto;
    }
    
    th, td {
        padding: 10px;
    }

    /* Index’e özel mobil iyileştirmeler */
    .index-page .container {
        padding: 12px;
    }
    .index-page .table-title {
        font-size: 17px;
        font-weight: 700;
    }
    .index-page table {
        table-layout: fixed;
    }
    .index-page table th,
    .index-page table td { font-size: 12px; padding: 6px 8px; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
    .team-panels .table-container { padding: 12px; }
    .index-page table th {
        font-size: 15px;
        word-break: break-word;
    }
    .index-page table td {
        font-size: 13px;
        word-break: break-word;
    }
    .index-page .yuzde-bar-container {
        height: 16px;
    }
    .index-page .yuzde-bar {
        line-height: 15px;
        font-size: 11px;
    }
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}

/* Form Styles */
.form-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #1d3557;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

.btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #45a049;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 14px;
    padding: 15px 0;
    border-top: 1px solid #ddd;
}

/* Login page */
.login-page {
    background: #f6f8fb;
    min-height: 100vh;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.login-header h1 {
    font-size: 20px;
    color: #1d3557;
    margin: 0 0 6px 0;
}

.login-header h2 {
    font-size: 18px;
    color: #457b9d;
    margin: 0;
}

.login-form label {
    display: block;
    margin: 12px 0 6px 0;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.login-form .btn {
    width: 100%;
    margin-top: 16px;
}

.login-form .show-password {
    margin: 6px 0 12px;
    font-size: 13px;
    color: #555;
}

.login-error {
    margin-top: 10px;
    color: #e63946;
    text-align: center;
}

/* Index’e özel: Tipografi güçlendirme */
.index-page .table-title {
    font-size: 21px;
    font-weight: 700;
}

.index-page table th {
    font-size: 17px;
    font-weight: 700;
}

.index-page table td {
    font-size: 16px;
}

.index-page .card-title {
    font-size: 19px;
    font-weight: 700;
}

.index-page .card-value {
    font-size: 38px;
    font-weight: 800;
}

/* Index’te sayısal kolonları kalınlaştır */
.index-page #performansTablosu td:nth-child(3),
.index-page #performansTablosu td:nth-child(4),
.index-page #performansTablosu td:nth-child(5) {
    font-weight: 600;
}

.index-page #ekipYuzdeleri td:nth-child(2),
.index-page #ekipYuzdeleri td:nth-child(3),
.index-page #tahsilatListesi td:nth-child(2) {
    font-weight: 700;
}

/* Login dark red theme (black background) */
.login-page {
  --gold: #dc143c; /* accent red */
  --gold-600: #8b0000; /* dark red */
  --bg: #0a0a0a;
  --card: #121212;
  --text: #e5e5e5;
  background:
    radial-gradient(1200px circle at 10% -10%, rgba(220,20,60,0.08), transparent 35%),
    var(--bg);
  color: var(--text);
}

.login-page .bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.45) contrast(1.05);
}

.login-page .login-container {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  place-items: center;
}

.login-page .login-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)), var(--card);
  border: 1px solid rgba(220,20,60,0.35);
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(220,20,60,0.2), 0 12px 32px rgba(0,0,0,0.5);
}

.login-page .login-header h1,
.login-page .login-header h2 {
  color: var(--gold);
}

.login-page .login-logo {
  filter: drop-shadow(0 0 12px rgba(220,20,60,0.35));
}

.login-page .login-form label {
  color: #cfcfcf;
}

.login-page .login-form input {
  background: #0f0f0f;
  border: 1px solid rgba(220,20,60,0.35);
  color: var(--text);
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s, transform .05s;
  caret-color: var(--gold);
}

.login-page .login-form input::placeholder {
  color: #777;
}

.login-page .login-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(220,20,60,0.2);
  outline: none;
}

.login-page .login-form .btn,
.login-page .btn {
  background: linear-gradient(135deg, var(--gold), #000000);
  color: #ffffff;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .2px;
}

.login-page .login-form .btn:hover,
.login-page .btn:hover {
  background: linear-gradient(135deg, var(--gold), #000000);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(220,20,60,0.22);
}

.login-page .show-password { color: #aaa; }
.login-page .login-error { color: #ff6b6b; }
.login-page footer { color: #aaa; border-top-color: rgba(255,255,255,0.1); }

/* Yüzde hücresi arkaplan renkleri (satır değil, sadece hücre) */
.cell-yuzde-low { 
    background-color: #ffebee !important; /* Açık kırmızı - %10'un altı */
    color: #c62828 !important;
    font-weight: bold;
}
.cell-yuzde-mid { 
    background-color: #fff3e0 !important; /* Açık turuncu - %10-%20 arası */
    color: #ef6c00 !important;
    font-weight: bold;
}
.cell-yuzde-high { 
    background-color: #e8f5e8 !important; /* Açık yeşil - %20'nin üstü */
    color: #2e7d32 !important;
    font-weight: bold;
}

@media (max-width: 480px) {
  .index-page .table-title { font-size: 16px; }
  .index-page table { table-layout: fixed; }
  .index-page table th,
  .index-page table td { font-size: 12px; padding: 6px 8px; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
  .team-panels .table-container { padding: 12px; }
}

/* Mobil yazı ve tablo iyileştirmeleri */
@media (max-width: 600px) {
  .table-container { padding: 14px; overflow-x: auto; }
  .table-title { font-size: 18px; }
  table { table-layout: fixed; }
  th, td { padding: 8px 10px; font-size: 13px; white-space: normal; word-break: break-word; }
  .team-summary { font-size: 13px; }
}

/* Modern Siyah-Beyaz Arkaplan Tasarımı */
.modern-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    background: #ffffff;
}

.modern-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 40%, rgba(0, 0, 0, 0.02) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(0, 0, 0, 0.02) 50%, transparent 60%),
        radial-gradient(circle at 25% 25%, rgba(0, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.03) 0%, transparent 50%);
    background-size: 200px 200px, 200px 200px, 300px 300px, 300px 300px;
    animation: patternMove 30s linear infinite;
}

.modern-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.01) 2px,
            rgba(0, 0, 0, 0.01) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.01) 2px,
            rgba(0, 0, 0, 0.01) 4px
        );
    background-size: 100px 100px;
    animation: gridMove 25s linear infinite reverse;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.particle-1 {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 10%;
    animation: floatUp 15s infinite linear;
    animation-delay: 0s;
}

.particle-2 {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 80%;
    animation: floatDiagonal 18s infinite linear;
    animation-delay: 2s;
}

.particle-3 {
    width: 3px;
    height: 3px;
    top: 80%;
    left: 30%;
    animation: floatUp 12s infinite linear;
    animation-delay: 4s;
}

.particle-4 {
    width: 5px;
    height: 5px;
    top: 40%;
    left: 70%;
    animation: floatSide 20s infinite linear;
    animation-delay: 1s;
}

.particle-5 {
    width: 2px;
    height: 2px;
    top: 10%;
    left: 50%;
    animation: floatUp 16s infinite linear;
    animation-delay: 3s;
}

.particle-6 {
    width: 7px;
    height: 7px;
    top: 70%;
    left: 15%;
    animation: floatDiagonal 22s infinite linear;
    animation-delay: 5s;
}

.particle-7 {
    width: 4px;
    height: 4px;
    top: 30%;
    left: 90%;
    animation: floatSide 14s infinite linear;
    animation-delay: 2.5s;
}

.particle-8 {
    width: 3px;
    height: 3px;
    top: 90%;
    left: 60%;
    animation: floatUp 19s infinite linear;
    animation-delay: 1.5s;
}

.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    opacity: 0.06;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.shape-1 {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 0, 0, 0.08) 70%);
    top: 15%;
    left: 85%;
    transform: rotate(45deg);
    animation: rotateFloat 30s infinite linear;
    border-radius: 8px;
}

.shape-2 {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, transparent 40%, rgba(0, 0, 0, 0.06) 60%);
    top: 75%;
    left: 5%;
    transform: rotate(-30deg);
    animation: rotateFloat 25s infinite linear reverse;
    border-radius: 50%;
}

.shape-3 {
    width: 80px;
    height: 80px;
    background: linear-gradient(90deg, transparent 50%, rgba(0, 0, 0, 0.05) 50%);
    top: 45%;
    left: 25%;
    transform: rotate(60deg);
    animation: rotateFloat 35s infinite linear;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(135deg, 
            rgba(0, 0, 0, 0.02) 0%, 
            rgba(0, 0, 0, 0.01) 25%, 
            rgba(0, 0, 0, 0.03) 50%, 
            rgba(0, 0, 0, 0.01) 75%, 
            rgba(0, 0, 0, 0.02) 100%);
    }
    50% {
        background: linear-gradient(135deg, 
            rgba(0, 0, 0, 0.03) 0%, 
            rgba(0, 0, 0, 0.02) 25%, 
            rgba(0, 0, 0, 0.01) 50%, 
            rgba(0, 0, 0, 0.03) 75%, 
            rgba(0, 0, 0, 0.02) 100%);
    }
}

@keyframes floatingOrbs {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.8;
    }
    33% {
        transform: translate(30px, -30px) scale(1.1) rotate(120deg);
        opacity: 1;
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9) rotate(240deg);
        opacity: 0.6;
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

@keyframes floatDiagonal {
    0% {
        transform: translate(100vw, 100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(-100px, -100px) scale(1);
        opacity: 0;
    }
}

@keyframes floatSide {
    0% {
        transform: translateX(100vw) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(-100px) scale(1);
        opacity: 0;
    }
}

@keyframes rotateFloat {
    0% {
        transform: rotate(0deg) translateY(0px);
    }
    50% {
        transform: rotate(180deg) translateY(-20px);
    }
    100% {
        transform: rotate(360deg) translateY(0px);
    }
}

/* Theme override: use black/red for table and card titles */
.table-title, .card-title {
  background: linear-gradient(135deg, #dc143c, #000000) !important;
  color: #ffffff !important;
  border-bottom: 0 !important;
}

/* Make titles flush with container and rounded like cards */
.table-container .table-title {
  margin: -25px -25px 20px -25px; /* match container padding */
  padding: 12px 16px;
  border-radius: 12px 12px 0 0;
}

.card .card-title {
  margin: -20px -20px 15px -20px; /* match card padding */
  padding: 12px 16px;
  border-radius: 12px 12px 0 0;
}

.table-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #000000;
    border-bottom: 2px solid #000000;
    padding-bottom: 10px;
    font-weight: 600;
}

/* Form Elemanları */
input[type="text"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus {
    border-color: #dc143c;
    box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.2);
    outline: none;
}

button, 
input[type="submit"] {
    padding: 12px 20px;
    background: linear-gradient(135deg, #000000, #dc143c);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover,
input[type="submit"]:hover {
    background: linear-gradient(135deg, #dc143c, #000000);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #ffffff;
    font-weight: bold;
    color: #000000;
}

tr:hover {
    background-color: #f8f9fa;
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 992px) {
    .dashboard {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .panel-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .card-value {
        font-size: 28px;
    }
    
    .table-container {
        padding: 15px;
        overflow-x: auto;
    }
    
    th, td {
        padding: 10px;
    }

    /* Index’e özel mobil iyileştirmeler */
    .index-page .container {
        padding: 12px;
    }
    .index-page .table-title {
        font-size: 17px;
        font-weight: 700;
    }
    .index-page table {
        table-layout: fixed;
    }
    .index-page table th,
    .index-page table td { font-size: 12px; padding: 6px 8px; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
    .team-panels .table-container { padding: 12px; }
    .index-page table th {
        font-size: 15px;
        word-break: break-word;
    }
    .index-page table td {
        font-size: 13px;
        word-break: break-word;
    }
    .index-page .yuzde-bar-container {
        height: 16px;
    }
    .index-page .yuzde-bar {
        line-height: 15px;
        font-size: 11px;
    }
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}

/* Form Styles */
.form-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #1d3557;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

.btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #45a049;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 14px;
    padding: 15px 0;
    border-top: 1px solid #ddd;
}

/* Login page */
.login-page {
    background: #f6f8fb;
    min-height: 100vh;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.login-header h1 {
    font-size: 20px;
    color: #1d3557;
    margin: 0 0 6px 0;
}

.login-header h2 {
    font-size: 18px;
    color: #457b9d;
    margin: 0;
}

.login-form label {
    display: block;
    margin: 12px 0 6px 0;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.login-form .btn {
    width: 100%;
    margin-top: 16px;
}

.login-form .show-password {
    margin: 6px 0 12px;
    font-size: 13px;
    color: #555;
}

.login-error {
    margin-top: 10px;
    color: #e63946;
    text-align: center;
}

/* Index’e özel: Tipografi güçlendirme */
.index-page .table-title {
    font-size: 21px;
    font-weight: 700;
}

.index-page table th {
    font-size: 17px;
    font-weight: 700;
}

.index-page table td {
    font-size: 16px;
}

.index-page .card-title {
    font-size: 19px;
    font-weight: 700;
}

.index-page .card-value {
    font-size: 38px;
    font-weight: 800;
}

/* Index’te sayısal kolonları kalınlaştır */
.index-page #performansTablosu td:nth-child(3),
.index-page #performansTablosu td:nth-child(4),
.index-page #performansTablosu td:nth-child(5) {
    font-weight: 600;
}

.index-page #ekipYuzdeleri td:nth-child(2),
.index-page #ekipYuzdeleri td:nth-child(3),
.index-page #tahsilatListesi td:nth-child(2) {
    font-weight: 700;
}

/* Yüzde hücresi arkaplan renkleri (satır değil, sadece hücre) */
.cell-yuzde-low { 
    background-color: #ffebee !important; /* Açık kırmızı - %10'un altı */
    color: #c62828 !important;
    font-weight: bold;
}
.cell-yuzde-mid { 
    background-color: #fff3e0 !important; /* Açık turuncu - %10-%20 arası */
    color: #ef6c00 !important;
    font-weight: bold;
}
.cell-yuzde-high { 
    background-color: #e8f5e8 !important; /* Açık yeşil - %20'nin üstü */
    color: #2e7d32 !important;
    font-weight: bold;
}

@media (max-width: 480px) {
  .index-page .table-title { font-size: 16px; }
  .index-page table { table-layout: fixed; }
  .index-page table th,
  .index-page table td { font-size: 12px; padding: 6px 8px; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
  .team-panels .table-container { padding: 12px; }
}

/* Mobil yazı ve tablo iyileştirmeleri */
@media (max-width: 600px) {
  .table-container { padding: 14px; overflow-x: auto; }
  .table-title { font-size: 18px; }
  table { table-layout: fixed; }
  th, td { padding: 8px 10px; font-size: 13px; white-space: normal; word-break: break-word; }
  .team-summary { font-size: 13px; }
}

/* Admin: mavi butonları altın renge çevir */
.table-container .btn,
.form-container .btn,
.table-container .btn-primary,
.form-container .btn-primary,
.table-container .panel-btn,
.form-container .panel-btn {
  background: linear-gradient(135deg, #dc143c, #8b0000) !important;
  color: #ffffff !important; /* kırmızı üstünde beyaz metin okunaklı */
  border: none !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

/* Hover efekti: tonları ters çevir ve hafif yükselt */
.table-container .btn:hover,
.form-container .btn:hover,
.table-container .btn-primary:hover,
.form-container .btn-primary:hover,
.table-container .panel-btn:hover,
.form-container .panel-btn:hover {
  background: linear-gradient(135deg, #8b0000, #dc143c) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Index sayfasındaki kırmızı aksanları */
.index-page .table-title {
  color: #dc143c;
  border-bottom: 2px solid #dc143c;
}
.index-page table th {
  color: #dc143c;
  background: linear-gradient(135deg, rgba(220,20,60,0.16), rgba(220,20,60,0.32));
}
.index-page .table-container { border-color: rgba(220,20,60,0.32); }


.empty-state {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}

/* Form Styles */
.form-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #1d3557;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

.btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #45a049;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 14px;
    padding: 15px 0;
    border-top: 1px solid #ddd;
}

/* Login page */
.login-page {
    background: #f6f8fb;
    min-height: 100vh;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.login-header h1 {
    font-size: 20px;
    color: #1d3557;
    margin: 0 0 6px 0;
}

.login-header h2 {
    font-size: 18px;
    color: #457b9d;
    margin: 0;
}

.login-form label {
    display: block;
    margin: 12px 0 6px 0;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.login-form .btn {
    width: 100%;
    margin-top: 16px;
}

.login-form .show-password {
    margin: 6px 0 12px;
    font-size: 13px;
    color: #555;
}

.login-error {
    margin-top: 10px;
    color: #e63946;
    text-align: center;
}

/* Index’e özel: Tipografi güçlendirme */
.index-page .table-title {
    font-size: 21px;
    font-weight: 700;
}

.index-page table th {
    font-size: 17px;
    font-weight: 700;
}

.index-page table td {
    font-size: 16px;
}

.index-page .card-title {
    font-size: 19px;
    font-weight: 700;
}

.index-page .card-value {
    font-size: 38px;
    font-weight: 800;
}

/* Index’te sayısal kolonları kalınlaştır */
.index-page #performansTablosu td:nth-child(3),
.index-page #performansTablosu td:nth-child(4),
.index-page #performansTablosu td:nth-child(5) {
    font-weight: 600;
}

.index-page #ekipYuzdeleri td:nth-child(2),
.index-page #ekipYuzdeleri td:nth-child(3),
.index-page #tahsilatListesi td:nth-child(2) {
    font-weight: 700;
}

/* Yüzde hücresi arkaplan renkleri (satır değil, sadece hücre) */
.cell-yuzde-low { 
    background-color: #ffebee !important; /* Açık kırmızı - %10'un altı */
    color: #c62828 !important;
    font-weight: bold;
}
.cell-yuzde-mid { 
    background-color: #fff3e0 !important; /* Açık turuncu - %10-%20 arası */
    color: #ef6c00 !important;
    font-weight: bold;
}
.cell-yuzde-high { 
    background-color: #e8f5e8 !important; /* Açık yeşil - %20'nin üstü */
    color: #2e7d32 !important;
    font-weight: bold;
}

@media (max-width: 480px) {
  .index-page .table-title { font-size: 16px; }
  .index-page table { table-layout: fixed; }
  .index-page table th,
  .index-page table td { font-size: 12px; padding: 6px 8px; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
  .team-panels .table-container { padding: 12px; }
}

/* Mobil yazı ve tablo iyileştirmeleri */
@media (max-width: 600px) {
  .table-container { padding: 14px; overflow-x: auto; }
  .table-title { font-size: 18px; }
  table { table-layout: fixed; }
  th, td { padding: 8px 10px; font-size: 13px; white-space: normal; word-break: break-word; }
  .team-summary { font-size: 13px; }
}
.index-page .modern-background { display: none; }

/* Index: beyaz zemin üstünde hareket eden slogo.png arka plan */
.index-page .logo-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #ffffff;
  overflow: hidden;
}
.index-page .logo-background .bg-logo {
  position: absolute;
  top: var(--top, 10%);
  left: -12vw;
  width: var(--size, 60px);
  opacity: var(--opacity, 0.08);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
  animation: logoSlide var(--dur, 46s) linear infinite, logoBob var(--bobDur, 8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s), var(--bobDelay, 0s);
}
.index-page .logo-background .bg-logo.reverse { left: calc(100vw + 12vw); animation-name: logoSlideReverse, logoBob; }
.index-page .logo-background .bg-logo:nth-child(1){ --top: 6%;  --dur: 42s; --size: 56px; --opacity: .06; }
.index-page .logo-background .bg-logo:nth-child(2){ --top: 18%; --dur: 48s; --size: 64px; --delay: 3s; }
.index-page .logo-background .bg-logo:nth-child(3){ --top: 28%; --dur: 52s; --size: 52px; --delay: 6s; }
.index-page .logo-background .bg-logo:nth-child(4){ --top: 38%; --dur: 44s; --size: 58px; --opacity: .07; }
.index-page .logo-background .bg-logo:nth-child(5){ --top: 48%; --dur: 50s; --size: 66px; --delay: 2s; }
.index-page .logo-background .bg-logo:nth-child(6){ --top: 58%; --dur: 46s; --size: 60px; --delay: 5s; }
.index-page .logo-background .bg-logo:nth-child(7){ --top: 68%; --dur: 54s; --size: 54px; }
.index-page .logo-background .bg-logo:nth-child(8){ --top: 78%; --dur: 49s; --size: 62px; --delay: 7s; }
.index-page .logo-background .bg-logo:nth-child(9){ --top: 14%; --dur: 47s; --size: 58px; --delay: 9s; }
.index-page .logo-background .bg-logo:nth-child(10){ --top: 34%; --dur: 53s; --size: 60px; --delay: 1s; }
.index-page .logo-background .bg-logo:nth-child(11){ --top: 64%; --dur: 45s; --size: 64px; --delay: 4s; }
.index-page .logo-background .bg-logo:nth-child(12){ --top: 84%; --dur: 51s; --size: 58px; --delay: 8s; }

@keyframes logoSlide {
  0%   { transform: translateX(0) rotate(var(--rotStart, 0deg)); }
  50%  { transform: translateX(60vw) rotate(var(--rotMid, 3deg)); }
  100% { transform: translateX(120vw) rotate(var(--rotEnd, 6deg)); }
}
@keyframes logoSlideReverse {
  0%   { transform: translateX(0) rotate(var(--rotStart, 0deg)); }
  50%  { transform: translateX(-60vw) rotate(var(--rotMid, 3deg)); }
  100% { transform: translateX(-120vw) rotate(var(--rotEnd, 6deg)); }
}
@keyframes logoBob {
  0%   { top: calc(var(--top, 10%) + 0px); }
  50%  { top: calc(var(--top, 10%) + 10px); }
  100% { top: calc(var(--top, 10%) + 0px); }
}