/* Genel Stil Ayarları */
:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --background-color: #f4f7fc;
    --text-color: #333;
    --white-color: #ffffff;
    --gray-color: #e0e0e0;
    --dark-gray-color: #888;
    --success-color: #28a745;
    --error-color: #dc3545;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --font-family: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Ana Konteyner ve Başlık --- */
#app-container {
    transition: filter 0.3s ease-in-out;
}

.app-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.app-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.app-header nav button {
    background: var(--white-color);
    color: var(--primary-color);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-left: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.app-header nav button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.app-header nav #logout-btn {
    background-color: transparent;
    border: 1px solid var(--white-color);
    color: var(--white-color);
}

.app-header nav #logout-btn:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.app-header nav span {
    margin-right: 1rem;
    font-weight: 600;
}


/* --- Main Content Layout --- */
#main-content {
    display: block;
}

/* Ana Layout - Sol ve Sağ Panel */
.main-layout {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    min-height: calc(100vh - 80px);
    align-items: flex-start;
}

.left-panel {
    flex: 1;
    max-width: 500px;
    min-width: 0; /* Flexbox overflow için */
    overflow-x: hidden; /* Yatay taşmayı önle */
}

.right-panel {
    flex: 1.5;
    max-width: 700px;
    overflow-y: auto;
    max-height: calc(100vh - 120px);
    min-width: 0; /* Flexbox overflow için */
}

/* Ana Sekme Butonları */
.content-wrapper {
    padding: 0;
    overflow-y: auto;
}

.main-tab-buttons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.main-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    background-color: var(--white-color);
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: var(--box-shadow);
    flex: 1;
    min-width: 140px;
    max-width: 220px;
}

.main-tab-btn:hover {
    background-color: #f3f4f6;
    color: var(--primary-color);
}

.main-tab-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 4px 12px rgba(106, 17, 203, 0.3);
}
.main-tab-btn.active svg {
    stroke: var(--white-color);
}

.main-tab-content {
    display: none;
}

.main-tab-content.active {
    display: block;
}


/* --- Tanıtım Sayfası (Landing Page) --- */
.landing-page {
    text-align: center;
    padding: 4rem 2rem;
}

.hero-section {
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    background: -webkit-linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

.hero-section .cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
}

.hero-section .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.features-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 300px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* --- Kimlik Doğrulama Formları (Auth Forms) --- */
.auth-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-container.show {
    opacity: 1;
    visibility: visible;
}

.auth-form {
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.auth-container.show .auth-form {
    transform: scale(1);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.auth-form input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray-color);
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
}

.auth-form button {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-form button:hover {
    opacity: 0.9;
    box-shadow: 0 4px 10px rgba(37, 117, 252, 0.4);
}

.auth-form .switch-form {
    text-align: center;
    margin-top: 1rem;
}

.auth-form .switch-form a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.auth-form .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-gray-color);
}

.error-message {
    color: var(--error-color);
    text-align: center;
    margin-top: 1rem;
    min-height: 1.2rem;
}


/* ----- Mevcut Uygulama Stilleri (Yeniden Düzenlenmiş) ----- */
.container {
    display: flex;
    flex-direction: column; /* Dikey sıralama için değiştirildi */
    gap: 2rem;
    /* padding: 2rem 5%; */ /* content-wrapper'a taşındı */
    max-width: 1600px;
    margin: 0 auto;
}

/* Form Container */
.form-container {
    background: var(--white-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden; /* Yatay taşmayı önle */
}

.form-container h2 {
    text-align: left;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input[type="file"],
.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.image-input-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.url-input-group {
    display: flex;
    flex-grow: 1;
}

.url-input-group input {
    border-radius: 5px 0 0 5px;
    border-right: none;
}

.url-input-group button {
    border-radius: 0 5px 5px 0;
    padding: 0 1rem;
    background: var(--dark-gray-color);
    color: white;
    border: none;
    cursor: pointer;
}

#image-preview, #image-preview-1, #image-preview-2 {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-top: 1rem;
    border-radius: 5px;
    border: 2px dashed var(--gray-color);
    display: block;
}
.hidden { display: none; }

/* Sekme Stilleri */
.tabs {
    margin-top: 0.5rem;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid var(--gray-color);
}

.tab-btn, .main-tab-btn-old { /* main-tab-btn is now in sidebar */
    padding: 0.75rem 1rem;
    cursor: pointer;
    border: none;
    background-color: transparent;
    font-weight: 600;
    color: var(--dark-gray-color);
    position: relative;
    font-family: inherit;
    font-size: 1rem;
}

.tab-btn.active, .main-tab-btn-old.active {
    color: var(--primary-color);
}

.tab-btn.active::after, .main-tab-btn-old.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-content {
    display: none;
    padding-top: 1rem;
}

.tab-content.active {
    display: block;
}
/* Eski .main-tabs stilleri artık gereksiz */

/* Hazır İstem Butonları */
.preset-btn {
    background-color: #e9ecef;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: inherit;
}

.preset-btn:hover {
    background-color: #ced4da;
}

/* Ana Üretim Butonu */
#generate-btn, #generate-btn-two {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    color: var(--white-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    cursor: pointer;
    transition: all 0.3s;
}

#generate-btn:hover, #generate-btn-two:hover {
    opacity: 0.9;
    box-shadow: 0 4px 10px rgba(37, 117, 252, 0.4);
}

/* Telefon Kılıfı Form Stilleri */
.form-help-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.secondary-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    color: var(--primary-color);
    background: var(--white-color);
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.secondary-btn:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.primary-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    color: var(--white-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.primary-btn:hover {
    opacity: 0.9;
    box-shadow: 0 4px 10px rgba(37, 117, 252, 0.4);
}

.phone-case-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.phone-case-actions button {
    flex: 1;
    min-width: 120px;
}

/* Telefon Kılıfı Sekmesi Özel Stiller */
#phone-case-tab .form-group {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

#phone-case-tab .form-group:last-of-type {
    border-bottom: none;
}

#phone-case-tab .form-group > .form-group {
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: none;
}

/* Telefon Kılıfı Önizleme Görselleri */
#phone-case-empty-preview,
#phone-case-reference-preview,
#phone-case-sample-preview,
#phone-case-filled-image,
#phone-case-result-image {
    max-width: 100% !important;
    max-height: 400px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    display: block;
}

/* Galeri */
.gallery-container {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    height: fit-content;
}

.gallery-container h2 {
    text-align: left;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
}

#gallery {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.gallery-item-group {
    background: var(--white-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
}
.gallery-item-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.gallery-item-group-header h3 {
    font-size: 1.2rem;
    flex-grow: 1;
}

.editable-title {
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.editable-title:focus {
    background-color: #e9ecef;
    outline: 2px solid var(--primary-color);
}

.actions button {
    margin-left: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.download-btn {
    background-color: var(--success-color);
    color: var(--white-color);
}

.delete-btn {
    background-color: var(--error-color);
    color: var(--white-color);
}

.gallery-image-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Spinner & Modal */
.spinner-overlay, .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    /* MODAL'I VARSAYILAN OLARAK GİZLE */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* GÖRÜNÜR OLMASI İÇİN .hidden SINIFINI KALDIR */
.spinner-overlay:not(.hidden), .modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

.spinner-overlay p {
    color: white;
    margin-left: 1rem;
    font-size: 1.2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal-content {
    background: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 600px;
    pointer-events: auto;
}

.modal-content .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--dark-gray-color);
}

.modal-content h2 {
    margin-bottom: 1rem;
}

#generated-image {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.modal-actions button, .pocket-options button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin: 0 0.5rem;
    transition: all 0.3s;
    pointer-events: auto;
    z-index: 10001;
    position: relative;
}

#confirm-btn, .pocket-option-btn {
    background-color: var(--success-color);
    color: white;
}

#retry-btn {
    background-color: #ffc107;
    color: black;
}

#cancel-btn, #pocket-cancel-btn {
    background-color: var(--error-color);
    color: white;
}

#angle-generation-status {
    margin-top: 1rem;
}

#angle-generation-status .loader {
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    animation: spin 0.8s linear infinite;
}

.pocket-options {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

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

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-header .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-header .close-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 1rem;
}

.preview-modal .modal-body {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 60px);
}

.modal-body .form-group {
    margin-bottom: 1.5rem;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.modal-body .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.modal-body .form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-body .form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.modal-body .stats {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.modal-body .stats p {
    margin: 0.5rem 0;
    color: #374151;
    font-size: 0.875rem;
}

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

.modal-actions button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-actions button[type="submit"] {
    background-color: #3b82f6;
    color: white;
}

.modal-actions button[type="submit"]:hover {
    background-color: #2563eb;
}

.modal-actions button[type="button"] {
    background-color: #f3f4f6;
    color: #374151;
}

.modal-actions button[type="button"]:hover {
    background-color: #e5e7eb;
}

/* Görsel Önizleme Modal Stilleri */
.preview-modal {
    max-width: 80vw;
    max-height: 90vh;
    width: auto;
    height: 90vh;
}

.preview-container {
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.pocket-btn {
    background-color: #f3f4f6;
    color: #374151;
    padding: 1rem 2rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
}

.pocket-btn:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

.pocket-btn.selected {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.pocket-btn.selected:hover {
    background-color: #2563eb;
}

/* --- Ana Sekmeler - YENİ SİSTEM İÇİN ARTIK GEREKLİ DEĞİL --- */

/* İkili Görsel Form Stilleri */
#dual-tab .form-container {
    background: var(--white-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 0;
}

#dual-tab .image-input-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

#dual-tab .url-input-group {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

#dual-tab .url-input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

#dual-tab .url-input-group button {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

#dual-tab .url-input-group button:hover {
    background-color: #1e5bb8;
}

#dual-tab .image-preview {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    border: 2px solid var(--gray-color);
}

#dual-tab .hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-layout {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .left-panel,
    .right-panel {
        max-width: none;
    }
    
    .right-panel {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .main-layout {
        padding: 1rem;
        gap: 1rem;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .gallery-container {
        padding: 1rem;
    }
    
    .main-tab-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .main-tab-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        min-width: 100%;
        max-width: 100%;
    }
    
    .left-panel {
        max-width: 100%;
    }
    
    .right-panel {
        max-width: 100%;
    }
    
    .app-header {
        padding: 1rem 2%;
    }
    
    .app-header .logo {
        font-size: 1.2rem;
    }
    
    .app-header nav button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Sayfalama Stilleri */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 17, 203, 0.3);
}

.pagination-btn:disabled {
    background: var(--gray-color);
    color: var(--dark-gray-color);
    cursor: not-allowed;
    opacity: 0.6;
}

.page-info {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
}

@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .pagination-btn {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    .page-info {
        text-align: center;
        width: 100%;
    }
}