/* Google Fonts Barlow */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;700&display=swap');

body {
    font-family: 'Barlow', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

nav {
    background-color: #343a40;
    padding: 1rem 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

main {
    padding: 2rem;
}

.gallery, .table-section, .artwork-detail, .dashboard {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery h1, .form-section h1, .table-section h1, .artwork-detail h1, .dashboard h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #343a40;
}

.artworks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.artwork {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: calc(33.333% - 1rem);
    margin-bottom: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.artwork img {
    width: 100%;
    height: auto;
}

.artwork:hover {
    transform: scale(1.05);
}

.artwork-details {
    padding: 1rem;
}

.artwork-details h2 {
    margin: 0.5rem 0;
    color: #343a40;
    font-size: 1.25rem;
}

.artwork-details p {
    margin: 0.25rem 0;
    color: #6c757d;
}

.artwork-details a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.artwork-details a:hover {
    background-color: #0056b3;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form label {
    color: #343a40;
}

form input[type="text"],
form input[type="number"],
form input[type="password"],
form input[type="file"],
form input[type="date"],
form textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
}

form input[type="submit"] {
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

form input[type="submit"]:hover {
    background-color: #0056b3;
}

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

table th,
table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

table td img {
    max-width: 100px;
    height: auto;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination a {
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 0.5rem;
}

.pagination a:hover {
    background-color: #0056b3;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.popup img {
    max-width: 100%;
    height: auto;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    background: #007bff;
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown-button {
    background-color: #007bff;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.dropdown-button:hover {
    background-color: #0056b3;
}
.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.search-container input {
    width: 50%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.appayments-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.appayments-table th, .appayments-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}
.appayments-table th {
    background-color: #f2f2f2;
}
.alpagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}
.alpagination li {
    margin: 0 5px;
}
.alpagination a {
    padding: 10px 15px;
    text-decoration: none;
    color: #007bff;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.alpagination a:hover {
    background-color: #f1f1f1;
}
.alsearch-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.alsearch-container input {
    width: 50%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.alsearch-container input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.alartwork-photo {
    max-height: 100px;
}
.alstatus-sold {
    color: black;
    font-weight: bold;
}
.alstatus-loan {
    color: orange;
    font-weight: bold;
}
.alstatus-stock {
    color: green;
    font-weight: bold;
}
.alstatus-sold-debt {
    color: red;
    font-weight: bold;
}
.albtn-payment {
    background-color: #007bff;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-size: 12px; /* Font büyüklüğü küçültüldü */
}
.albtn-payment:hover {
    background-color: #0056b3;
}
.adartwork-container {
    display: flex;
    gap: 20px;
}
.adartwork-images {
    flex: 1;
    position: relative;
    max-width: 50%;
}
.adartwork-images img {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.adartwork-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.adartwork-thumbnails img {
    width: 80px;
    height: auto;
    cursor: pointer;
}
.adartwork-details {
    flex: 1;
    max-width: 50%;
}
.adartwork-details h1 {
    margin: 0;
    font-size: 24px;
}
.adartwork-details p {
    margin: 5px 0;
}
.adslider-container {
    position: relative;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    border-radius: 0 3px 3px 0;
    user-select: none;
}
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.artwork-container {
    display: flex;
    gap: 20px;
}
.artwork-images {
    flex: 1;
    position: relative;
    /*max-width: 35%;*/
}
.artwork-images img {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 450px; /* Slider yüksekliği 450 piksel */
    object-fit: contain;
}
.artwork-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.artwork-thumbnails img {
    width: 80px;
    height: auto;
    cursor: pointer;
}
.artwork-details {
    flex: 1;
    max-width: 65%;
}
.artwork-details h1 {
    margin: 0;
    font-size: 24px;
    text-align: left;
    color: #000;
}
.artwork-details p {
    margin: 10px 0; /* Satır arası boşluk artırıldı */
    color: #000;
}
.slider-container {
    position: relative;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    border-radius: 0 3px 3px 0;
    user-select: none;
}
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.transactions-table, .financial-table {
    width: 100%;
    border-collapse: collapse;
}
.ust-aciklik {
    margin-top: 40px; /* Üst boşluk artırıldı */
}
.transactions-table th, .transactions-table td, .financial-table th, .financial-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}
.transactions-table th, .financial-table th {
    background-color: #f2f2f2;
}
.whatsapp-button, .payment-button, .add-finance-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    color: white;
    background-color: #25D366;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}
.whatsapp-button:hover, .payment-button:hover, .add-finance-button:hover {
    background-color: #1EBEA5;
}
.gmain-container {
    display: flex;
    gap: 20px;
    margin: 20px;
}
.gartworks-container {
    flex: 0 0 65%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.gartwork-item {
    flex: 1 1 calc(25% - 40px);
    max-width: calc(25% - 40px);
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.gartwork-item img {
    max-width: 100%;
    max-height: 250px;
    min-height: 250px;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
}
.ggallery-info {
    flex: 0 0 35%;
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.ggallery-info h2 {
    margin-top: 0;
}
.loan-artwork-details {
    color: black;
    font-size: 14px;
    margin-bottom: 10px;
}
.loan-artwork-photo {
    max-height: 100px;
    margin-right: 10px;
}
input:focus {
    outline: 2px solid #007bff;
}
.sell-artwork-details {
    color: black;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.sell-artwork-photo {
    max-height: 100px;
    margin-right: 10px;
}
.inartworks-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.inartwork-item {
    flex: 1 1 calc(25% - 40px);
    max-width: calc(25% - 40px);
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.inartwork-item img {
    max-width: 100%;
    max-height: 250px; /* Maksimum yükseklik tanımlandı */
    min-height: 250px; /* Minimum yükseklik tanımlandı */
    height: auto;
    cursor: pointer;
}
.inpagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}
.inpagination li {
    margin: 0 5px;
}
.inpagination a {
    padding: 10px 15px;
    text-decoration: none;
    color: #007bff;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.inpagination a:hover {
    background-color: #f1f1f1;
}
.galemain-container {
    display: flex;
    gap: 20px;
    margin: 20px;
}
.galeartworks-container {
    flex: 0 0 65%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.galeartwork-item {
    flex: 0 0 calc(33.333% - 20px);
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.galeartwork-item img {
    max-width: 100%;
    max-height: 250px;
    min-height: 250px;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
}
.galegallery-info {
    flex: 0 0 35%;
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-right: 20px; /* Sağ kenara yaslanmayı önler */
}
.galegallery-info h2 {
    margin-top: 0;
}
.galepagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    width: 100%;
}
.galepagination li {
    margin: 0 5px;
}
.galepagination a {
    padding: 10px 15px;
    text-decoration: none;
    color: #007bff;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.galepagination a:hover {
    background-color: #f1f1f1;
}

/* Sidebar Stiller */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.5rem 1rem;
    margin: 0.2rem 0;
}

.sidebar .nav-link:hover {
    color: #007bff;
    background-color: #f8f9fa;
}

.sidebar .nav-link.active {
    color: #007bff;
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
}

/* Form Stiller */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
}

/* Dosya Yükleme Stiller */
.custom-file-upload {
    border: 2px dashed #ddd;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-file-upload:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.custom-file-upload i {
    font-size: 2rem;
    color: #6c757d;
    margin-bottom: 10px;
}

/* Select2 Stiller */
.select2-container--bootstrap-5 .select2-selection {
    border-color: #ced4da;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
    padding: 0.375rem 0.75rem;
}

/* Önizleme Stiller */
.image-preview {
    max-width: 200px;
    max-height: 200px;
    margin: 10px 0;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Buton Stiller */
.btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn-outline-dark:hover {
    background-color: #343a40;
    color: #fff;
}

/* Alert Stiller */
.alert {
    border-radius: 5px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive Ayarlar */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        height: auto;
        padding-top: 0;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
}