/* Ana stil ayarları */
:root {
    --primary-color: #4a6da7;
    --secondary-color: #25d366;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --dark-blue: #2c3e50;
    --border-radius: 10px;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

body {
    background-color: #f5f7fb;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px 0;
}

.main-container {
    padding: 20px;
}

/* Header stili geliştirmeleri */
.navbar {
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    background: #ffffff;
    padding: 0.8rem 1rem;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: #2c3e50;
    padding: 0.6rem 0;
    position: relative;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.navbar-brand:hover .platform-icon {
    transform: scale(1.15);
}

.platform-icon {
    font-size: 1.5rem;
    margin-right: 8px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.nav-item {
    margin: 0 5px;
}

.nav-link {
    font-weight: 600;
    color: #555;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(74, 109, 167, 0.08);
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 500;
    background-color: rgba(74, 109, 167, 0.1);
    border-radius: 6px;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 4px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(74, 109, 167, 0.25);
}

/* Logo alanı stili */
.logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    margin-right: 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-container i {
    font-size: 1.5rem;
    margin: 0 3px;
    transition: transform 0.3s ease;
}

.logo-container i.fa-telegram {
    color: #0088cc;
}

.logo-container i.fa-whatsapp {
    color: #25d366;
}

.logo-container:hover i {
    transform: scale(1.1);
}

/* Kart stilleri */
.card {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 20px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Başlıkları daha görünür yapmak için değişiklikler */
.card-header {
    padding: 15px;
    border-bottom: none;
}

.bg-dark-blue {
    background-color: var(--dark-blue);
    color: white;
    position: relative;
}

.bg-dark-blue::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.card-body {
    padding: 25px;
}

/* Form stilleri */
.form-control, .input-group-text {
    border-radius: 7px;
    padding: 10px 15px;
    font-size: 1rem;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 109, 167, 0.25);
}

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

textarea.form-control {
    min-height: 100px;
}

/* Buton stilleri */
.btn {
    border-radius: 7px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #3a5b8c;
    border-color: #3a5b8c;
}

/* Resim önizleme alanı */
.img-preview {
    width: 100%;
    height: 150px;
    border-radius: var(--border-radius);
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px dashed #ced4da;
}

.img-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Ürün önizleme alanı */
.product-preview-card {
    background-color: white;
}

.product-preview-image {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border: 1px solid #efefef;
}

.product-preview-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.placeholder-text {
    color: #adb5bd;
    font-style: italic;
}

.product-details {
    padding: 10px;
}

.product-details h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

/* Bildirim alanı */
.alert {
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 15px;
    border: none;
    box-shadow: var(--box-shadow);
}

/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fadeIn {
    animation: fadeIn 0.5s ease-in-out;
}

/* WhatsApp durum göstergesi */
.status-indicator {
    font-size: 0.9rem;
}

.whatsapp-status-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* QR kod sayfası stilleri */
.qr-container {
    max-width: 350px;
    margin: 0 auto;
}

#qrCodeDisplay {
    width: 100%;
    height: 350px;
    background-color: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ccc;
    margin-bottom: 20px;
}

#qrCodeDisplay img {
    max-width: 100%;
    max-height: 100%;
}

.wa-logo {
    margin-bottom: 15px;
    text-align: center;
}

.wa-logo i {
    font-size: 4rem;
    color: #25d366;
}

.connection-status {
    font-size: 1.2rem;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 20px;
}

.connected {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.waiting {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.instruction-step {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #4a6da7;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
}

/* Duyarlı tasarım ayarları */
@media (max-width: 768px) {
    .card-body {
        padding: 15px;
    }
    
    .product-preview-image {
        height: 200px;
    }
    
    .whatsapp-status-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .whatsapp-status-container a {
        margin-top: 10px;
    }

    .drop-zone {
        height: 180px;
    }
}

/* Form switch stilleri */
.form-check-input {
    width: 3em;
    height: 1.5em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(74, 109, 167, 0.25);
}

/* Telegram ve WhatsApp renkleri */
.form-check-input:checked#sendToTelegram {
    background-color: #0088cc;
    border-color: #0088cc;
}

.form-check-input:checked#sendToWhatsapp {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Ayarlar sayfası için stiller */
.settings-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.setting-section {
    margin-bottom: 30px;
}

.form-text {
    color: #777;
    font-size: 0.85rem;
}

/* Test butonları */
.btn-outline-success, .btn-outline-primary {
    border-width: 2px;
    font-weight: 500;
}

.btn-outline-success:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Form grup alanı */
hr {
    opacity: 0.1;
    margin: 30px 0;
}

/* Başlık içindeki simgeler için stiller */
.card-header i {
    margin-right: 8px;
}

/* Genel iyileştirmeler */
.shadow-hover {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* Sürükle Bırak Alanı */
.drop-zone {
    width: 100%;
    height: 220px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    border: 2px dashed #c7cdd3;
    border-radius: 10px;
    background-color: #f8f9fa;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.drop-zone:hover {
    background-color: #eef2f7;
    border-color: var(--primary-color);
}

.drop-zone.drop-zone-active {
    background-color: #eef7f2;
    border-color: var(--secondary-color);
    border-style: solid;
}

.drop-zone-input {
    display: none;
}

.drop-zone-prompt {
    color: #6c757d;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    background-color: #f8f9fa;
}

.drop-zone:hover .drop-zone-prompt {
    background-color: #eef2f7;
}

.drop-zone-prompt i {
    color: #c7cdd3;
    transition: all 0.3s ease;
}

.drop-zone:hover .drop-zone-prompt i {
    color: var(--primary-color);
}

.drop-zone-active .drop-zone-prompt i {
    color: var(--secondary-color);
}

.drop-zone-prompt p {
    margin-bottom: 0;
    font-size: 16px;
}

.drop-zone-prompt span {
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
}

.drop-zone-preview {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
    overflow: hidden;
    z-index: 2;
    background-color: white;
}

.drop-zone-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.drop-zone-preview.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.drop-zone-preview.active ~ .drop-zone-prompt {
    display: none;
}

/* Çoklu resim önizleme stilleri */
.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.preview-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e9e9e9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-filename {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.5);
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #ced4da;
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
}

/* Sürükle bırak alanı düzenlemeleri */
.drop-zone-preview.active + .drop-zone-prompt {
    display: none;
}

.drop-zone.active {
    border-color: var(--primary-color);
    background-color: rgba(74, 109, 167, 0.05);
} 