/* Genel Ayarlar */
:root {
    --primary-blue: #004d99; /* Derin Mavi */
    --secondary-blue: #007bff; /* Açık Mavi */
    --accent-purple: #6a1b9a; /* Mor */
    --accent-red: #dc3545; /* Kırmızı */
    --accent-green: #28a745; /* Yeşil */
    --accent-yellow: #ffc107; /* Sarı */
    --accent-cyan: #17a2b8; /* Turkuaz */
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #f7f9fc; /* Açık Arka Plan */
    --bg-white: #fff;
    --border-light: #e0e6ed;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #04142d;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    padding: 20px;
    max-width: 1400px;
    margin: 20px auto;
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 600;
}

h2 {
    font-size: 1.8rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 1.5rem;
}

/* Header ve Navigasyon */
header {
    background-color: #e3f1ff(--primary-blue);
    color: var(--text-light);
    padding: 10px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.header-branding {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 150px;
    width: 150px;
    border-radius: 8px; /* Logoya da hafif yuvarlaklık */
}

.main-menu {
    display: flex;
    justify-content: flex-end; /* Menüyü sağa hizala */
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.main-menu li {
    margin: 0 8px; /* Daha dar aralık */
}

.main-menu a {
    display: flex;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 12px; /* Daha küçük padding */
    border-radius: 8px; /* Yuvarlak köşeler */
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 500;
}

.main-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px); /* Hafif yukarı kalkma efekti */
}

.main-menu a svg {
    width: 18px; /* Daha küçük ikonlar */
    height: 18px;
    margin-right: 6px;
    vertical-align: middle;
}

/* Dashboard İçerik ve Logo Bölümü */
.dashboard-content {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.main-modules {
    flex: 1;
}

.dashboard-logo {
    flex: 0 0 auto;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Logo sağa hizalı */
}

.dashboard-logo img {
    max-width: 250px; /* Daha küçük logo */
    height: auto;
    border-radius: 12px;
  
}

/* Dashboard Modül Kartları */
.card-grid-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Daha esnek kart boyutları */
    gap: 20px;
    margin-top: 2rem;
    text-align: center;
}

.dashboard-card-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background-color: var(--bg-white);
    border-radius: 15px; /* Daha yuvarlak köşeler */
    box-shadow: 0 8px 20px var(--shadow-light);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--border-light);
}

.dashboard-card-icon:hover {
    box-shadow: 0 12px 30px var(--shadow-hover);
    transform: translateY(-8px) scale(1.02);
    background-color: #fcfdfe; /* Hafif renk değişimi */
    border-color: currentColor; /* Hover'da ikon rengini alır */
}

.card-icon-svg {
    border-radius: 50%;
    padding: 18px; /* Daha büyük padding */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light); /* Arka plan rengi */
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05); /* İç gölge efekti */
}

.card-icon-svg svg {
    width: 45px;
    height: 45px;
    fill: currentColor;
    stroke: #000;
    stroke-width: inherit;
}

.dashboard-card-icon span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-shadow: 0 1px 2px rgba(0,0,0,0.05); /* Hafif gölge */
}

/* Welcome Message */
.welcome-message {
    text-align: center;
    padding: 25px;
    margin-bottom: 25px;
    color: var(--text-light);
    
}

.welcome-message h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #04142d; /* Beyaz yazı */
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-bottom: none; /* Alt çizgiyi kaldır */
    padding-bottom: 0;
}

.welcome-message p {
    font-size: 1.3rem;
    color: #04142d;
    margin: 0;
}

.logout-container {
    text-align: center;
    margin-top: 30px;
}

.logout-btn {
    display: inline-flex; /* İkon ve metni yanyana */
    align-items: center;
    padding: 12px 25px;
    background-color: var(--accent-red);
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.logout-btn:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}
.logout-btn svg {
    margin-right: 8px;
}


/* Genel Tablo Stilleri */
table {
    width: 100%;
    border-collapse: separate; /* border-radius için */
    border-spacing: 0;
    margin-top: 1.5rem;
    background-color: var(--bg-white);
    border-radius: 10px; /* Yuvarlak köşeler */
    overflow: hidden; /* Köşelerin görünmesini sağlar */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

table th, table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

table th {
    background-color: var(--bg-light);
    color: var(--primary-blue);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
}

table tbody tr:last-child td {
    border-bottom: none;
}

table tbody tr:hover {
    background-color: #f0f4f8; /* Hafif hover efekti */
}

/* Form Stilleri */
form {
    background-color: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid var(--border-light);
    border-radius: 8px; /* Yuvarlak köşeler */
    font-size: 1rem;
    background-color: #fdfefe;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 10px;
    color: var(--primary-blue);
}

.form-actions {
    margin-top: 2rem;
    text-align: right;
}

.form-actions button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.form-actions button[type="submit"] {
    background-color: var(--accent-green);
    color: var(--text-light);
}

.form-actions button[type="submit"]:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.form-actions .secondary-btn {
    background-color: var(--secondary-blue);
    color: var(--text-light);
    margin-right: 10px;
}

.form-actions .secondary-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}


/* Header Actions (Sayfa Başlığı ve Butonlar) */
.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-light);
}

.header-actions h2 {
    margin: 0;
    color: var(--primary-blue);
    border-bottom: none; /* Ana başlıkta alt çizgi zaten var */
    padding-bottom: 0;
}

.header-actions a {
    background-color: var(--secondary-blue);
    color: var(--text-light);
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.header-actions a:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}


/* Mesaj Kutuları */
p.message { /* Mesajları daha belirgin hale getirelim */
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

p.message[style*="green"] { /* success */
    background-color: #e6ffed;
    color: #1a7e37;
    border: 1px solid #7bc67b;
}

p.message[style*="red"] { /* error */
    background-color: #ffe6e6;
    color: #b02a37;
    border: 1px solid #e57373;
}


/* Durum Etiketleri (Dashboard renkleri ile uyumlu) */
.status {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85em;
    display: inline-block;
    min-width: 90px;
    text-align: center;
}

/* Durum Renkleri */
.status-draft { background-color: #78909c; color: var(--text-light); } /* Gri */
.status-new { background-color: #007bff; color: var(--text-light); } /* Mavi */
.status-pending, .status-waiting_approval { background-color: #ffc107; color: var(--text-dark); } /* Sarı */
.status-pending-plan { background-color: #ffa000; color: var(--text-dark); } /* Turuncu */
.status-accepted, .status-approved, .status-completed_successful, .status-paid, .status-completed { background-color: #28a745; color: var(--text-light); } /* Yeşil */
.status-rejected, .status-cancelled, .status-on_hold, .status-completed_unsuccessful { background-color: #dc3545; color: var(--text-light); } /* Kırmızı */
.status-sent { background-color: #17a2b8; color: var(--text-light); } /* Turkuaz */
.status-in_progress, .status-ordered { background-color: #6c757d; color: var(--text-light); } /* Koyu Gri */
.status-invoiced { background-color: #007bff; color: var(--text-light); } /* Tekrar Mavi, belki daha açık */
.status-partially_paid { background-color: #6f42c1; color: var(--text-light); } /* Mor */
.status-active { background-color: #28a745; color: var(--text-light); }
.status-inactive { background-color: #6c757d; color: var(--text-light); }


/* Login Sayfası */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    background-color: var(--bg-white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.login-container h2 {
    margin-bottom: 2rem;
    color: var(--primary-blue);
    font-size: 2.2rem;
    font-weight: 700;
    border-bottom: none;
    padding-bottom: 0;
}

.login-container input {
    margin-bottom: 1.5rem;
    height: 50px;
    font-size: 1.1rem;
    border-radius: 8px;
}

.login-container button {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    background-color: var(--accent-green);
    color: var(--text-light);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.login-container button:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Detay Kutuları (view_X.php sayfaları için) */
.detail-box {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.detail-box-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

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

.detail-grid > div {
    padding: 10px 0;
}

.detail-grid strong {
    color: var(--secondary-blue);
    margin-right: 5px;
}

.detail-grid .full-width {
    grid-column: 1 / -1;
}

/* Inline form for status update (Keşifler sayfasındaki select box için) */
.inline-form {
    display: inline-block;
    margin: 0;
}

.inline-form select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background-color: var(--bg-white);
    font-size: 0.9em;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.inline-form select:hover {
    border-color: var(--secondary-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.inline-form select:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

/* Genel Liste Kartları */
.list-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.list-card:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.list-card-content {
    flex-grow: 1;
}

.list-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.list-card-meta {
    font-size: 0.9em;
    color: #6c757d;
}

.list-card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.list-card-actions a, .list-card-actions button {
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.list-card-actions a.view-btn {
    background-color: var(--secondary-blue);
    color: var(--text-light);
}

.list-card-actions a.view-btn:hover {
    background-color: #0056b3;
}

.list-card-actions a.edit-btn {
    background-color: #ffc107;
    color: var(--text-dark);
}

.list-card-actions a.edit-btn:hover {
    background-color: #e0a800;
}

.list-card-actions a.delete-btn {
    background-color: var(--accent-red);
    color: var(--text-light);
}

.list-card-actions a.delete-btn:hover {
    background-color: #c82333;
}

/* Offer Item Rows */
.offer-item-row {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fcfdfe;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.offer-item-row .form-group {
    margin-bottom: 0;
}

.offer-item-row .remove-btn-group {
    display: flex;
    align-items: flex-end; /* Butonu alta hizala */
    justify-content: flex-end; /* Butonu sağa hizala */
    grid-column: -1 / -2; /* En sağ sütuna yerleştir */
    padding-bottom: 8px; /* Inputlar ile aynı seviyeye gelmesi için */
}


.remove-item-btn {
    background-color: var(--accent-red);
    color: var(--text-light);
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s, transform 0.2s;
}

.remove-item-btn:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

/* --- Responsive Tasarım Ayarları --- */
@media (max-width: 1200px) {
    main {
        padding: 15px;
        margin: 15px auto;
    }
    .header-logo {
        height: 35px;
    }
    .main-menu a {
        padding: 7px 10px;
        font-size: 0.9em;
    }
    .main-menu a svg {
        width: 16px;
        height: 16px;
        margin-right: 5px;
    }
    .card-grid-menu {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    .dashboard-card-icon {
        padding: 20px 10px;
    }
    .card-icon-svg {
        padding: 15px;
        margin-bottom: 10px;
    }
    .card-icon-svg svg {
        width: 35px;
        height: 35px;
    }
    .dashboard-card-icon span {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .dashboard-content {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    .main-modules {
        width: 100%;
    }
    .dashboard-logo {
        justify-content: center;
    }
    .dashboard-logo img {
        max-width: 200px;
    }
    .main-menu {
        justify-content: center;
        margin-top: 10px;
    }
    .header-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .header-actions h2 {
        width: 100%;
    }
    .header-actions a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    main {
        padding: 10px;
        margin: 10px;
    }
    header {
        flex-direction: column;
        padding: 10px;
    }
    .main-menu {
        flex-direction: column;
        align-items: stretch;
        margin-top: 10px;
    }
    .main-menu li {
        margin: 5px 0;
    }
    .main-menu a {
        justify-content: center;
    }
    .card-grid-menu {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    .dashboard-card-icon {
        padding: 15px 5px;
    }
    .card-icon-svg {
        padding: 12px;
        margin-bottom: 8px;
    }
    .card-icon-svg svg {
        width: 30px;
        height: 30px;
    }
    .dashboard-card-icon span {
        font-size: 0.85rem;
    }

    .welcome-message h2 {
        font-size: 2rem;
    }
    .welcome-message p {
        font-size: 1rem;
    }

    /* Tabloların responsive görünümü */
    table {
        border-radius: 8px;
        overflow-x: auto; /* Küçük ekranlarda kaydırılabilir */
        display: block;
        white-space: nowrap;
    }
    table thead {
        display: none; /* Başlıkları gizle */
    }
    table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid var(--border-light);
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        padding: 10px;
    }
    table td {
        display: block;
        text-align: right;
        padding: 8px 12px;
        position: relative;
        font-size: 0.9em;
        border-bottom: none;
    }
    table td:last-child {
        border-bottom: none;
    }
    table td::before { /* Başlığı pseudo-element ile göster */
        content: attr(data-label);
        font-weight: 600;
        float: left;
        text-transform: uppercase;
        color: var(--primary-blue);
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-actions {
        text-align: center;
    }
    .form-actions button, .form-actions .secondary-btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}
/* public/css/style.css dosyasının sonuna ekleyin */

.finance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.finance-grid > div {
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 12px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.finance-grid strong {
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .finance-grid {
        grid-template-columns: 1fr;
    }
}
/* public/css/style.css dosyasının sonuna ekleyin */

.detail-box-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.detail-box-grid .detail-box {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .detail-box-grid {
        grid-template-columns: 1fr;
    }
}
/* public/css/style.css dosyasının en sonuna ekleyin */

.project-detail-container {
    display: flex;
    gap: 20px;
}

.project-main-details {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-box-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.detail-box-grid .detail-box {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .detail-box-grid {
        grid-template-columns: 1fr;
    }
}
/* public/css/style.css dosyasının sonuna ekleyin */

/* public/css/style.css dosyasının sonuna ekleyin */

.detail-box-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.map-container {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .detail-box-grid {
        grid-template-columns: 1fr;
    }
}
}
/* Puantaj ve Fazla Mesai Tabloları için Stil */
.puantaj-container {
    padding: 20px;
}

.puantaj-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.puantaj-header h2 {
    margin: 0;
    color: #343a40;
}

.month-selector a {
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
    margin: 0 10px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.month-selector a:hover {
    background-color: #e9ecef;
}
.month-selector span {
    font-weight: bold;
    color: #495057;
}

.puantaj-table-wrapper {
    overflow-x: auto; /* Yatay kaydırma çubuğu */
    margin-bottom: 30px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,.05);
}

.puantaj-table-wrapper table {
    width: 100%; /* Tablonun genişliği */
    min-width: fit-content; /* İçeriğe göre minimum genişlik */
    border-collapse: collapse;
    font-size: 14px;
}

.puantaj-table-wrapper th,
.puantaj-table-wrapper td {
    border: 1px solid #dee2e6;
    padding: 8px;
    text-align: center;
    white-space: nowrap; /* Hücre içeriğinin tek satırda kalmasını sağlar */
}

.puantaj-table-wrapper th {
    background-color: #e9ecef;
    font-weight: bold;
    color: #495057;
}

.puantaj-table-wrapper tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}
.puantaj-table-wrapper tbody tr:hover {
    background-color: #e9f5fd;
}

.puantaj-table-wrapper td:first-child { /* Personel sütunu */
    text-align: left;
    min-width: 180px; /* Personel adları için daha geniş alan */
    max-width: 250px;
    position: sticky; /* Sütunu sabitle */
    left: 0;
    background-color: inherit; /* Kaydırma yaparken arka plan rengi */
    z-index: 2; /* Diğer hücrelerin üstünde olmasını sağla */
}
.puantaj-table-wrapper thead th:first-child { /* Personel başlık sütunu */
    position: sticky;
    left: 0;
    z-index: 3; /* Daha yüksek z-index */
}
/* Toplam sütunlarını sabitleme (Sağ tarafta) */
.puantaj-table-wrapper th:last-child:not([colspan]),
.puantaj-table-wrapper td:last-child {
    position: sticky;
    right: 0;
    background-color: #e9ecef; /* Başlık için */
    z-index: 2;
}
.puantaj-table-wrapper td:last-child {
    background-color: inherit; /* Kaydırma yaparken arka plan rengi */
    font-weight: bold;
}


.puantaj-table-wrapper input[type="number"] {
    width: 40px;
    padding: 4px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
    -moz-appearance: textfield; /* Firefox'ta okları gizle */
}
/* Chrome, Safari, Edge, Opera'da okları gizle */
.puantaj-table-wrapper input[type=number]::-webkit-inner-spin-button,
.puantaj-table-wrapper input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Özel gün renklendirmesi (Görseldeki gibi) */
.holiday-day { /* Kırmızı gün */
    background-color: #ffebee; /* Daha açık kırmızı */
    color: #c62828; /* Daha koyu kırmızı metin */
    font-weight: bold;
}
.special-day { /* Mavi gün */
    background-color: #e3f2fd; /* Daha açık mavi */
    color: #1565c0; /* Daha koyu mavi metin */
    font-weight: bold;
}

/* Personel adı ve unvanı */
.personnel-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 5px; /* İçeriği biraz sağa kaydır */
}
.personnel-info svg {
    color: #6c757d;
    min-width: 20px; /* SVG'nin sabit genişliği */
}
.personnel-info div {
    text-align: left;
}
.personnel-info .name {
    font-weight: bold;
    color: #343a40;
}
.personnel-info .title {
    font-size: 12px;
    color: #6c757d;
}

.form-actions {
    text-align: right;
    margin-top: 20px;
}
.form-actions button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.form-actions button:hover {
    background-color: var(--primary-dark);
}

/* responsive düzenleme */
@media (max-width: 768px) {
    .puantaj-header {
        flex-direction: column;
        gap: 10px;
    }
    .puantaj-table-wrapper th,
    .puantaj-table-wrapper td {
        padding: 6px 4px;
        font-size: 12px;
    }
    .puantaj-table-wrapper input[type="number"] {
        width: 30px;
        font-size: 12px;
    }
    .personnel-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding-left: 0;
    }
    .personnel-info svg {
        margin-bottom: 5px;
    }
}
/* Master Evaluation Page */
.master-evaluation-container {
    max-width: 800px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.evaluation-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.master-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.master-avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.master-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.master-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex-grow: 1;
}

.master-details-grid div {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.master-details-grid strong {
    font-weight: 600;
    color: var(--primary);
}

.evaluation-report h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.rating-label {
    flex: 0 0 180px;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: right;
    color: var(--text-muted);
}

.rating-bar-container {
    flex-grow: 1;
    height: 10px;
    background-color: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.rating-bar {
    height: 100%;
    background-color: var(--accent-green);
    transition: width 0.5s ease-in-out;
}

.rating-percentage {
    flex: 0 0 50px;
    text-align: left;
    font-weight: bold;
    color: var(--primary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .master-card-header {
        flex-direction: column;
        text-align: center;
    }
    .master-details-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .rating-row {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .rating-label {
        text-align: left;
        flex: 1;
    }
    .rating-bar-container {
        width: 100%;
        margin-top: 5px;
    }
    .rating-percentage {
        order: -1; /* Yüzdeyi en başa al */
        text-align: left;
    }
}
/* --- Mobil Uyumluluk İyileştirmeleri --- */

@media (max-width: 1200px) {
    /* Orta ölçekli cihazlar için (tabletler) */
    main {
        padding: 15px;
        margin: 15px auto;
    }
    header {
        padding: 10px 15px;
    }
    .main-menu a {
        padding: 8px 10px;
        font-size: 0.95rem;
    }
    .form-grid {
        gap: 15px;
    }
}

@media (max-width: 992px) {
    /* Daha küçük tabletler ve geniş telefonlar için */
    .dashboard-content {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    .dashboard-logo {
        justify-content: center;
    }
    .main-menu {
        justify-content: center;
        margin-top: 10px;
    }
    .card-grid-menu {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }
    .header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .header-actions a {
        width: 100%;
        text-align: center;
        box-sizing: border-box; /* Padding ve border'ı genişliğe dahil et */
    }
    .list-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .list-card-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .detail-box-grid {
        grid-template-columns: 1fr;
    }
    .project-detail-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    /* Telefonlar için genel düzenlemeler */
    body {
        font-size: 15px;
    }
    main {
        padding: 10px;
        margin: 10px;
        border-radius: 8px;
    }
    header {
        flex-direction: column;
        padding: 10px;
    }
    .main-menu {
        flex-direction: column;
        align-items: stretch;
        margin-top: 10px;
    }
    .main-menu li {
        margin: 5px 0;
    }
    .main-menu a {
        justify-content: center;
        padding: 10px;
    }
    h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    .welcome-message h2 {
        font-size: 2rem;
    }
    .welcome-message p {
        font-size: 1.1rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-actions {
        text-align: center;
    }
    .form-actions button,
    .form-actions .secondary-btn {
        width: 100%;
        margin: 0 0 10px 0;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .list-card-actions a,
    .list-card-actions button {
        padding: 10px 15px;
    }

    /* Tablo düzenlemesi */
    table {
        border-radius: 8px;
        overflow-x: auto;
        display: block;
    }
    table thead {
        display: none; /* Başlıkları gizle */
    }
    table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid var(--border-light);
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        padding: 10px;
    }
    table td {
        display: block;
        text-align: right;
        padding: 8px 12px;
        position: relative;
        font-size: 0.95rem;
        border-bottom: none;
    }
    table td:last-child {
        border-bottom: none;
    }
    table td::before {
        content: attr(data-label);
        font-weight: 600;
        float: left;
        text-transform: uppercase;
        color: var(--primary-blue);
    }
    
    /* Puantaj tablosu için özelleştirme */
    .puantaj-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .puantaj-table-wrapper table {
        min-width: 600px; /* Tablo içeriğinin sığmasını sağlamak için minimum genişlik */
    }
    .puantaj-table-wrapper th,
    .puantaj-table-wrapper td {
        padding: 6px 4px;
        font-size: 12px;
    }
    .puantaj-table-wrapper input[type="number"] {
        width: 30px;
        font-size: 12px;
    }
    .personnel-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding-left: 0;
    }
    .personnel-info svg {
        margin-bottom: 5px;
    }
}

@media (max-width: 576px) {
    /* Çok küçük telefonlar için son dokunuşlar */
    .login-container {
        padding: 2rem;
    }
    .login-container h2 {
        font-size: 1.8rem;
    }
    .card-grid-menu {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
}
