/* Resim yönetimi için sadece karanlık tema engelleme */
.image-management-panel {
    color-scheme: light;
}

/* Resim Yönetim Paneli Stilleri */
.image-management-panel {
    position: fixed;
    right: 20px;
    top: 120px;
    width: 320px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    max-height: 70vh;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.image-management-panel.active {
    transform: translateX(0);
}

.image-panel-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-panel-title {
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.image-panel-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.image-panel-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.image-panel-content {
    padding: 20px;
    max-height: calc(70vh - 80px);
    overflow-y: auto;
}

.image-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-upload-area:hover {
    border-color: #ed1c24;
    background-color: #f8faff;
}

.image-upload-area.dragover {
    border-color: #ed1c24;
    background-color: #e0e7ff;
}

.upload-icon {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 15px;
}

.upload-text {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 10px;
}

.upload-formats {
    color: #9ca3af;
    font-size: 12px;
}

.image-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.image-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.image-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.image-info {
    flex: 1;
    min-width: 0;
}

.image-name {
    font-weight: 500;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-details {
    font-size: 12px;
    color: #6b7280;
}

.image-actions {
    display: flex;
    gap: 5px;
}

.image-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

.image-action-btn.edit {
    background: #dbeafe;
    color: #2563eb;
}

.image-action-btn.edit:hover {
    background: #bfdbfe;
}

.image-action-btn.delete {
    background: #fee2e2;
    color: #dc2626;
}

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

.image-action-btn.visibility {
    background: #f3f4f6;
    color: #6b7280;
}

.image-action-btn.visibility:hover {
    background: #e5e7eb;
}

.image-action-btn.visibility.visible {
    background: #dcfce7;
    color: #16a34a;
}

/* Resim Düzenleme Modalı */
.image-edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.image-edit-modal.active {
    display: flex;
}

.image-edit-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
}

.image-edit-header {
    padding: 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: between;
    align-items: center;
}

.image-edit-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-range {
    width: 100%;
    margin-bottom: 10px;
}

.range-value {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    min-width: 60px;
}

.image-edit-footer {
    padding: 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-edit {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit.primary {
    background: #ed1c24;
    color: white;
}

.btn-edit.primary:hover {
    background: #5a6fd8;
}

.btn-edit.secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-edit.secondary:hover {
    background: #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
    .image-management-panel {
        width: 280px;
        right: 10px;
        top: 100px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}