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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f5f5f5;
}

.app-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
    width: 100%;
}

.nav-item {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-user {
    margin-left: auto;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.header-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.app-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.app-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Project List Styles */
.project-list {
    width: 100%;
}

.project-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.project-list-header h2 {
    font-size: 2rem;
    color: #333;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

/* İstatistik Kartları */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-card-content {
    flex: 1;
    min-width: 0;
}

.stat-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.stat-card-label {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
    line-height: 1.2;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.projects-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

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

.compact-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.compact-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    white-space: nowrap;
}

.compact-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.compact-table tbody tr {
    transition: background-color 0.15s;
}

.compact-table tbody tr:hover {
    background-color: #f8f9fa;
}

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

/* Data table genel stilleri */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.data-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    white-space: nowrap;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.data-table tbody tr {
    transition: background-color 0.15s;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

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

.project-card {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    min-height: 180px;
    max-height: 220px;
}

/* TSE Başvuruları sayfası kartları için daha yüksek kartlar */
.tse-application-card {
    min-height: 280px;
    max-height: 350px;
}

/* Projeler sayfası kartları için daha yüksek kartlar */
.projects-page-card {
    min-height: 220px;
    max-height: 280px;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.project-card-header h3 {
    font-size: 1.15rem;
    color: #333;
    flex: 1;
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.btn-delete {
    background: #e74c3c;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    opacity: 0.8;
}

.btn-delete:hover {
    background: #c0392b;
    opacity: 1;
    transform: scale(1.1);
}

.project-card-body {
    flex: 1;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: hidden;
}

.project-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}

.info-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.info-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-card-footer {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.project-card-footer:empty {
    display: none;
}

.status-badge,
.priority-badge {
    padding: 0.25rem 0.7rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
}

.status-badge {
    color: white;
}

.status-planlama {
    background-color: #6c757d;
}

.status-devam-ediyor {
    background-color: #007bff;
}

.status-aktif-çalışılıyor,
.status-aktif-calısılıyor {
    background-color: #28a745;
}

.status-ray-kapı-konmuş,
.status-ray-kapi-konmus {
    background-color: #17a2b8;
}

.status-tescil-süreci,
.status-tescil-sureci {
    background-color: #ffc107;
    color: #333;
}

.status-tamamlandı {
    background-color: #28a745;
}

.status-teslim-edildi {
    background-color: #17a2b8;
}

.status-beklemede {
    background-color: #f39c12;
}

.status-iptal-edildi {
    background-color: #dc3545;
}

.priority-badge {
    color: white;
}

.priority-düşük {
    background-color: #6c757d;
}

.priority-orta {
    background-color: #ffc107;
    color: #333;
}

.priority-yüksek {
    background-color: #fd7e14;
}

.priority-acil {
    background-color: #dc3545;
}

.assigned-users {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.task-counts {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.task-count {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.task-count-open {
    background-color: #d1fae5;
    color: #065f46;
}

.task-count-closed {
    background-color: #e5e7eb;
    color: #374151;
    align-items: center;
}

.user-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background-color: #667eea;
    color: white;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.pdf-info {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pdf-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-view-pdf {
    padding: 0.4rem 0.8rem;
    background-color: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.btn-view-pdf:hover {
    background-color: #5568d3;
}

.btn-delete-pdf {
    padding: 0.4rem 0.8rem;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-delete-pdf:hover {
    background-color: #c0392b;
}

.no-projects {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    grid-column: 1 / -1;
}

.no-projects p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.loading {
    text-align: center;
    padding: 4rem;
    font-size: 1.2rem;
    color: #666;
}

/* Form Styles */
.project-detail {
    width: 100%;
}

.project-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.project-detail-header h2 {
    font-size: 2rem;
    color: #333;
}

.project-form {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

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

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

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

.form-group label {
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input[type="file"] {
    padding: 0.5rem 0;
}

.form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    cursor: pointer;
}

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

.pdf-info {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.pdf-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-view-pdf {
    padding: 0.4rem 0.8rem;
    background-color: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.btn-view-pdf:hover {
    background-color: #5568d3;
}

.btn-delete-pdf {
    padding: 0.4rem 0.8rem;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-delete-pdf:hover {
    background-color: #c0392b;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #5568d3;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #c82333;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
    border: none;
}

.btn-warning:hover:not(:disabled) {
    background-color: #e0a800;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 4px;
}

/* Login Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.login-box {
    background: white;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.1), 0px 4px 12px 0px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.login-box h3 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
    background-color: unset;
    background: unset;
    border-style: solid;
    border-width: 1px;
    border-color: rgba(0, 0, 0, 0);
    border-image: none;
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.15);
}

.login-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-logo img {
    max-width: 200px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.btn-block {
    width: 100%;
}

.error-message {
    color: #e74c3c;
    background: #ffeaea;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

#login-password {
    padding: 11px;
}

/* User Info Styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #333;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* User Management Styles */
.user-management {
    width: 100%;
}

.user-management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.user-management-header h2 {
    font-size: 2rem;
    color: #333;
    flex: 1;
}

.users-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.user-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.user-card-header h3 {
    font-size: 1.3rem;
    color: #333;
}

.user-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-admin {
    background: #667eea;
    color: white;
}

.badge-active {
    background: #2ecc71;
    color: white;
}

.badge-inactive {
    background: #95a5a6;
    color: white;
}

.user-card-body {
    margin-bottom: 1rem;
}

.permissions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.permission-badge {
    background: #e8f4f8;
    color: #2c3e50;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.no-permissions {
    color: #95a5a6;
    font-style: italic;
}

.user-card-footer {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.no-users {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    grid-column: 1 / -1;
}

/* User Form Styles */
.user-form-container {
    width: 100%;
}

.user-form-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.user-form-header h2 {
    font-size: 2rem;
    color: #333;
    flex: 1;
}

.user-form {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.permission-item {
    display: flex;
    align-items: center;
}

.permission-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.permission-item input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* User Assignment Styles */
.user-assignments {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
}

.user-assignment-item {
    display: flex;
    align-items: center;
}

.user-assignment-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    width: 100%;
}

.user-assignment-item input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .app-main {
        padding: 1rem;
    }
    
    .app-header h1 {
        font-size: 1.4rem;
    }

    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .stat-card-value {
        font-size: 1.25rem;
    }

    .stat-card-label {
        font-size: 0.75rem;
    }

    .project-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card {
        min-height: auto;
        max-height: none;
        padding: 1rem;
    }

    .project-card-header h3 {
        font-size: 1.05rem;
    }

    .info-text {
        white-space: normal;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }

    .filters {
        flex-direction: column;
    }

    .project-form {
        padding: 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .user-management-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .users-list {
        grid-template-columns: 1fr;
    }

    .permissions-grid {
        grid-template-columns: 1fr;
    }

    .user-info {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Raporlar Sayfası Stilleri */
/* Raporlar Sayfası Stilleri */
.reports-container {
    width: 100%;
}

.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.reports-header h2 {
    font-size: 2rem;
    color: #333;
}

.reports-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.reports-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-section h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.field-selection-section {
    margin-bottom: 2rem;
}

.field-selection-section h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
}

.field-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-group h4 {
    font-size: 1rem;
    color: #667eea;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

.field-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.field-group label:hover {
    background-color: #e9ecef;
}

.field-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.field-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.report-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
}

.reports-table-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.report-summary {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #e7f3ff;
    border-radius: 4px;
    border-left: 4px solid #667eea;
}

.table-responsive {
    overflow-x: auto;
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.reports-table thead {
    background-color: #667eea;
    color: white;
}

.reports-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.reports-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #ddd;
}

.reports-table tbody tr:hover {
    background-color: #f8f9fa;
}

.reports-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* Tasks Section Styles */
.tasks-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tasks-header h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.tasks-list {
    display: grid;
    gap: 1rem;
}

.task-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.task-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.task-header h4 {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
    flex: 1;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: #f0f0f0;
}

.task-body {
    margin-bottom: 1rem;
}

.task-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.task-photo {
    margin-top: 1rem;
}

.task-photo img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.task-photo img:hover {
    transform: scale(1.02);
}

.task-photo-upload {
    margin-top: 1rem;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #999;
}

.task-meta {
    display: flex;
    align-items: center;
}

.task-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.task-open {
    border-left: 4px solid #10b981;
}

.task-closed {
    border-left: 4px solid #6b7280;
    opacity: 0.8;
}

.task-form-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.task-form-card h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

.no-tasks {
    text-align: center;
    padding: 2rem;
    color: #999;
}

.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.photo-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.photo-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.photo-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    font-weight: bold;
}

.photo-modal-close:hover {
    color: #ccc;
}

.info-message {
    padding: 2rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .app-header {
        padding: 1rem;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .header-logo {
        height: 40px;
    }
    
    .app-header h1 {
        font-size: 1.2rem;
    }
    
    .app-main {
        padding: 1rem;
    }
    
    .project-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .project-list-header h2 {
        font-size: 1.5rem;
    }
    
    .project-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-card {
        padding: 1rem;
    }
    
    .project-card-header h3 {
        font-size: 1.1rem;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .user-info button {
        width: 100%;
    }
    
    .project-form {
        padding: 1rem;
    }
    
    .form-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .form-section h3 {
        font-size: 1.1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 1rem;
        padding: 0.6rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .tasks-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .tasks-header h3 {
        font-size: 1.2rem;
    }
    
    .task-card {
        padding: 1rem;
    }
    
    .task-header h4 {
        font-size: 1rem;
    }
    
    .task-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .reports-container {
        padding: 1rem;
    }
    
    .reports-filters {
        padding: 1rem;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .field-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .reports-table-container {
        overflow-x: auto;
    }
    
    .reports-table {
        font-size: 0.8rem;
    }
    
    .reports-table th,
    .reports-table td {
        padding: 0.5rem;
    }
    
    .user-management-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .users-list {
        grid-template-columns: 1fr;
    }
    
    .user-card {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .task-counts {
        flex-wrap: wrap;
    }
    
    .assigned-users {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 0.75rem;
    }
    
    .app-header h1 {
        font-size: 1rem;
    }
    
    .header-logo {
        height: 35px;
    }
    
    .app-main {
        padding: 0.75rem;
    }
    
    .project-list-header h2 {
        font-size: 1.3rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .project-card {
        padding: 0.75rem;
    }
    
    .form-section {
        padding: 0.75rem;
    }
    
    .task-card {
        padding: 0.75rem;
    }
    
    .login-box {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .login-box h2 {
        font-size: 1.3rem;
    }
    
    .login-box h3 {
        font-size: 1rem;
    }
}

.user-assignments-report {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Orders Page Styles */
.orders-container {
    width: 100%;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.orders-header h2 {
    font-size: 2rem;
    color: #333;
    margin: 0;
}

.orders-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.orders-list {
    width: 100%;
    overflow-x: auto;
}

.orders-table-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.orders-table thead {
    background: #f8f9fa;
}

.orders-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.orders-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.orders-table tbody tr:hover {
    background-color: #f8f9fa;
}

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

.order-type {
    font-weight: 500;
    color: #333;
}

.order-project-link {
    color: #667eea;
    cursor: pointer;
    text-decoration: underline;
}

.order-project-link:hover {
    color: #5568d3;
}

.order-actions-cell {
    white-space: nowrap;
}

.order-actions-cell .btn-icon {
    margin: 0 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

.orders-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-info {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.orders-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Eski kart görünümü için geriye dönük uyumluluk */
.order-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.order-header h3 {
    font-size: 1rem;
    color: #333;
    margin: 0 0 0.25rem 0;
}

.order-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-beklemede {
    background-color: #fef3c7;
    color: #92400e;
}

.status-siparis-verildi,
.status-onaylandı,
.status-sipariş-verildi {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-teslim-edildi {
    background-color: #d1fae5;
    color: #065f46;
}

.status-iptal-edildi {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-santiye-ye-gonderildi,
.status-şantiye-ye-gönderildi {
    background-color: #e0e7ff;
    color: #3730a3;
}

.status-depoda {
    background-color: #fef3c7;
    color: #78350f;
}

/* Malzeme Modal Stilleri */
.materials-section {
    margin-bottom: 2rem;
}

.materials-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.materials-table-container {
    overflow-x: auto;
}

.materials-table-container table {
    width: 100%;
    border-collapse: collapse;
}

/* Proje bazlı malzeme grupları */
.materials-grouped-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.project-material-group {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.project-material-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    transition: background 0.2s;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-material-header:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.project-material-header h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.toggle-icon {
    font-size: 0.9rem;
    transition: transform 0.2s;
    display: inline-block;
}

.project-material-content {
    padding: 0;
    background: white;
}

.project-material-content .materials-table-container {
    margin: 0;
    border-radius: 0;
}

.project-material-content table {
    margin: 0;
    border-radius: 0;
}

.materials-table-container th {
    background-color: #e9ecef;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.materials-table-container td {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.materials-table-container tbody tr:hover {
    background-color: #f8f9fa;
}

.order-body {
    margin-top: 1rem;
}

.order-info {
    display: flex;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.order-info .info-label {
    font-weight: 600;
    color: #666;
    min-width: 120px;
}

.order-form-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.order-form-card h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

/* Proje Grupları */
.order-project-group {
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.order-project-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    cursor: pointer;
    transition: background-color 0.2s;
    gap: 1rem;
}

.order-project-header:hover {
    background: #e9ecef;
}

.project-group-icon {
    font-size: 0.9rem;
    color: #667eea;
    user-select: none;
    min-width: 20px;
}

.project-group-title {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.project-group-title .order-project-link {
    color: #667eea;
    text-decoration: none;
    cursor: pointer;
}

.project-group-title .order-project-link:hover {
    text-decoration: underline;
}

.project-order-count {
    font-size: 0.9rem;
    color: #666;
    background: #e9ecef;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
}

.order-project-orders {
    padding: 0;
}

.order-project-orders .orders-table-wrapper {
    box-shadow: none;
    border-radius: 0;
}

.order-project-orders .orders-table {
    margin: 0;
}

.order-materials-row {
    background-color: #f8f9fa;
}

.order-materials-container {
    padding: 1rem;
    background-color: #f8f9fa;
}

.order-materials-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.order-materials-table thead {
    background-color: #e9ecef;
}

.order-materials-table th {
    padding: 0.5rem;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.order-materials-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.order-materials-table tbody tr:hover {
    background-color: #ffffff;
}

.project-summary-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-material-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.material-pending-badge {
    background-color: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.material-pending-badge.has-pending {
    background-color: #fff3cd;
    color: #856404;
    font-weight: 600;
}

.status-badge-mini {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.25rem;
}

.order-project-summary {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.summary-section {
    margin-bottom: 1rem;
}

.summary-section:last-child {
    margin-bottom: 0;
}

.summary-section h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: #495057;
    font-weight: 600;
}

.summary-materials-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.material-item-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #495057;
}

.material-item-badge.missing {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.status-text {
    font-weight: 600;
}

.order-project-orders .orders-table thead {
    background: #f1f3f5;
}

.order-project-orders .orders-table th {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
}

.order-project-orders .orders-table td {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .orders-table {
        font-size: 0.8rem;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 0.5rem 0.75rem;
    }
    
    .order-project-header {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }
    
    .project-group-title {
        font-size: 1rem;
    }
    
    .project-order-count {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    .orders-pagination {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-info {
        font-size: 0.85rem;
    }
}

.no-orders {
    text-align: center;
    padding: 2rem;
    color: #999;
}

.user-assignments-report h3 {
    margin-bottom: 1rem;
    color: #333;
}

/* Proje Seri No Sayfası Stilleri */
.project-serial-numbers-container {
    width: 100%;
}

.project-serial-numbers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-serial-numbers-header h2 {
    font-size: 2rem;
    color: #333;
    margin: 0;
}

.project-select-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.project-select-section .form-group {
    max-width: 500px;
}

.project-select-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.serial-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.serial-category-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.serial-category-card h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

.category-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.serial-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.serial-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.serial-image-item img:hover {
    transform: scale(1.05);
}

.btn-delete-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e74c3c;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-delete-image:hover {
    background: #c0392b;
}

.serial-image-upload {
    aspect-ratio: 1;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #f9f9f9;
}

.serial-image-upload:hover {
    border-color: #667eea;
    background: #f0f0ff;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
    padding: 1rem;
}

.upload-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.upload-text {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

.category-info {
    text-align: right;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .serial-images-grid {
        grid-template-columns: 1fr;
    }
    
    .category-images {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .project-serial-numbers-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Malzeme Listesi Stilleri */
.materials-container {
    width: 100%;
}

.materials-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

.materials-header h2 {
    font-size: 2rem;
    color: #333;
    margin: 0;
}

.materials-header > div {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.materials-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.materials-projects-info {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.materials-projects-info h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.materials-projects-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-material-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #667eea;
    cursor: pointer;
    transition: all 0.2s;
}

.project-material-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-material-item .project-name {
    font-weight: 500;
    color: #333;
    flex: 1;
}

.project-material-item .material-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.project-material-item .unsent-count {
    color: #e74c3c;
    font-weight: 600;
}

.project-material-item .total-count {
    color: #666;
}

.project-select-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-select-section .form-group {
    max-width: 500px;
}

.project-select-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.project-select-section select {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.project-select-section select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.materials-table-wrapper {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.materials-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.materials-table thead {
    background-color: #667eea;
    color: white;
}

.materials-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.materials-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #ddd;
}

.materials-table tbody tr:hover {
    background-color: #f8f9fa;
}

.materials-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.material-adet-input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

.material-adet-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.material-adet-input:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

.material-siparis-durum-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.material-siparis-durum-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.material-gonderildi-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.material-gonderildi-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.material-name-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.material-name-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.material-name-input::placeholder {
    color: #999;
    font-style: italic;
}

.materials-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    min-width: 20px;
    padding: 0 4px;
}

.materials-list-btn {
    position: relative;
}

.serial-numbers-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    min-width: 20px;
    padding: 0 4px;
}

.serial-numbers-btn {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    min-width: 20px;
    padding: 0 4px;
}

.notification-btn {
    position: relative;
}

.notification-panel {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 400px;
    max-height: 600px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.notification-panel.show {
    display: flex;
}

.notification-panel-header {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.notification-panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.notification-panel-body {
    overflow-y: auto;
    max-height: 500px;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #e3f2fd;
    font-weight: 500;
}

.notification-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.notification-item-message {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.notification-item-time {
    font-size: 0.75rem;
    color: #999;
}

.notification-panel-footer {
    padding: 0.75rem;
    border-top: 1px solid #ddd;
    text-align: center;
}

.materials-table .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.info-message {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-style: italic;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .materials-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .materials-table-wrapper {
        padding: 1rem;
    }
    
    .materials-table {
        font-size: 0.85rem;
    }
    
    .materials-table th,
    .materials-table td {
        padding: 0.5rem;
    }
    
    .material-adet-input {
        width: 60px;
        font-size: 0.8rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.tooltip-trigger {
    position: relative;
}

/* =====================================================================
   KONUMLAR SAYFASI (Google Maps) - RESPONSIVE
   ===================================================================== */

.locations-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.locations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.locations-title-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.locations-title-area h2 {
    margin: 0;
    font-size: 1.4rem;
}

.locations-toolbar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.locations-toolbar input[type="text"],
.locations-toolbar select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
}

.locations-toolbar input[type="text"] {
    min-width: 220px;
}

.locations-status {
    margin-bottom: 0.75rem;
    color: #555;
    font-size: 0.9rem;
    min-height: 1.2rem;
}

.locations-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1rem;
    align-items: start;
}

.locations-map-el {
    height: 70vh;
    min-height: 500px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #eee;
}

.locations-sidebar {
    max-height: 70vh;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.locations-info {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #555;
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 6px;
    line-height: 1.45;
}

.locations-list-item {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.locations-list-item:last-child {
    border-bottom: none;
}

.locations-list-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.locations-list-item-info {
    min-width: 0;
    flex: 1;
}

.locations-list-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.locations-list-item-sub {
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.locations-list-item-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    flex-shrink: 0;
}

/* Tablet */
@media (max-width: 1024px) {
    .locations-grid {
        grid-template-columns: 1fr 300px;
    }
}

/* Mobil */
@media (max-width: 768px) {
    .locations-page {
        padding: 0.5rem;
    }
    .locations-header {
        gap: 0.5rem;
    }
    .locations-title-area h2 {
        font-size: 1.1rem;
    }
    .locations-toolbar {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .locations-toolbar input[type="text"],
    .locations-toolbar select,
    .locations-toolbar button {
        width: 100%;
        min-width: 0;
    }
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .locations-map-el {
        height: 55vh;
        min-height: 320px;
        order: 1;
    }
    .locations-sidebar {
        order: 2;
        max-height: 45vh;
    }
    .locations-info {
        font-size: 0.8rem;
        padding: 0.6rem;
    }
    /* Sidebar item'ları mobile'da biraz daha büyük tıklama alanı */
    .locations-list-item {
        padding: 10px 8px;
    }
    .locations-list-item-title {
        font-size: 0.95rem;
    }
}

/* Konum picker modal - mobil */
@media (max-width: 768px) {
    #location-picker-modal {
        padding: 0.25rem !important;
    }
    #location-picker-modal .modal-content {
        max-height: 98vh !important;
        border-radius: 6px !important;
    }
    #location-picker-modal .modal-content > div:nth-child(2) {
        padding: 0.6rem !important;
    }
    #picker-map {
        height: 300px !important;
    }
    /* Koordinat girişi mobilde tek kolon */
    .picker-coord-grid {
        grid-template-columns: 1fr !important;
    }
    /* Butonlar mobilde tam genişlik */
    #location-picker-modal .btn {
        flex: 1 1 auto;
    }
}

