@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f4f7f6;
    color: #333;
}

.container {
    width: 100%;
    height: 100%;
    background-color: #fff;
    box-sizing: border-box; 
    padding: 10px 20px 20px 20px; 
}

h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 700;
    margin-top: 0;
}

.table-responsive {
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 8px 15px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #34495e;
    text-align: left;
    white-space: nowrap;
}

.table thead th a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.table thead th a:hover {
    color: #007bff;
}
.table thead th i {
    margin-left: 5px;
}

.table tbody tr:hover {
    background-color: #f1f8ff;
}

.text-right {
    text-align: right;
}

.image-cell {
    text-align: center;
    width: 80px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: transform 0.2s;
}
.thumbnail:hover {
    transform: scale(1.1);
}

.filter-row .filter-cell {
    padding: 8px;
    background-color: #fafafa;
}

.filter-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 0.9em;
}
.filter-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.top-controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 5px;
    flex-wrap: wrap;
    gap: 15px;
}

.action-buttons-group {
    display: flex;
    gap: 10px;
}

.export-button {
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.excel-button {
    background-color: #1d6f42;
}
.excel-button:hover {
    background-color: #165934;
}

.clear-button {
    background-color: #6c757d;
}
.clear-button:hover {
    background-color: #5a6268;
}

.records-per-page-selector select {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    color: #555;
    font-size: 0.9em;
}

.pagination {
    display: flex;
    gap: 5px;
}

.pagination a, .pagination span {
    color: #007bff;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.pagination span {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
    cursor: default;
}

.pagination a:hover {
    background-color: #f1f1f1;
}

.filter-buttons {
    text-align: center;
    margin-top: 20px;
}

.filter-buttons input, .filter-buttons button {
    padding: 12px 25px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin: 0 10px;
}

.filter-buttons input[type="submit"] {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

tr.negative-stock td {
    color: #c9302c;
    font-weight: 500;
}

tr.negative-stock td a {
    color: inherit;
}


/* -- GENEL MODAL STİLLERİ (Resim Görüntüleyici İçin) -- */
.modal {
    display: none; /* DÜZELTME: Pencereler başlangıçta gizli olmalı */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
}

#imageModal .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
#imageModal .close:hover,
#imageModal .close:focus {
    color: #bbb;
    text-decoration: none;
}

/* -- LİNKLER İÇİN ÖZEL POP-UP PANEL STİLLERİ -- */
#mediaModal {
    display: none;
    position: absolute;
    z-index: 1050;
    width: 280px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

#mediaModal .modal-content {
    padding: 0;
    width: 100%;
    max-width: 100%;
    max-height: none;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
}

#mediaModal #mediaModalTitle {
    padding: 12px 15px;
    margin: 0;
    font-size: 1em;
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

#mediaModal .close-media {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    font-weight: bold;
}
#mediaModal .close-media:hover {
    color: #333;
}

/* Stok Kodu sütunu için özel genişlik */
.stok-kodu-column {
    width: 8%; /* Bu genişliği ihtiyacınıza göre ayarlayabilirsiniz, ör: 12% */
    text-align: left;
}

.gramaj-column {
    width: 8%;
    text-align: right;
}

.kalan-column {
    width: 8%;
    text-align: right;
}
