/* Photo Info Modify Modal Styles */

/* Ensure photo editor uses standard gradient header */
.photo-info-modify-modal .i3nb-modal-header {
  background: linear-gradient(135deg, #2D2D2D 0%, #8B8680 100%) !important;
  position: relative !important;
  z-index: 10 !important;
  flex-shrink: 0; /* Prevent header from shrinking */
}

/* Force title to be visible in photo editor */
.photo-info-modify-modal .i3nb-modal-title {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: white !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Ensure modal body doesn't overlap header */
.photo-info-modify-modal .i3nb-modal-body {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Photo preview pane */
.photo-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 20px;
    min-height: 0; /* Important for flexbox scrolling */
}

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

/* Editor container */
.photo-info-modify-container {
    padding: 20px;
    background: white;
    /* Remove height: 100% to allow proper flexbox scrolling */
    /* The parent pane handles overflow with flex: 1 1 auto */
}

.photo-edit-form {
    margin-bottom: 30px;
}

/* Form styling */
.photo-info-modify-modal .form-group {
    margin-bottom: 20px;
}

.photo-info-modify-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.photo-info-modify-modal .form-group input[type="text"],
.photo-info-modify-modal .form-group textarea,
.photo-info-modify-modal .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.photo-info-modify-modal .form-group input[type="text"]:focus,
.photo-info-modify-modal .form-group textarea:focus,
.photo-info-modify-modal .form-group select:focus {
    outline: none;
    border-color: #0095f6;
}

.photo-info-modify-modal .form-group textarea {
    resize: vertical;
}

/* Character count */
.char-count {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.photo-info-modify-modal .form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #666;
}

.privacy-select {
    cursor: pointer;
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn-save,
.btn-cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s, background-color 0.3s;
}

.btn-save {
    background: #0095f6;
    color: white;
    flex: 1;
}

.btn-save:hover {
    opacity: 0.9;
}

.btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-cancel {
    background: #e9ecef;
    color: #333;
}

.btn-cancel:hover {
    background: #dee2e6;
}

/* Danger zone */
.danger-zone {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #dee2e6;
}

.danger-zone h4 {
    color: #dc3545;
    margin-bottom: 15px;
    font-size: 16px;
}

.btn-delete {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-delete:hover {
    opacity: 0.9;
}

.btn-delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile styles */
@media (max-width: 768px) {
    .photo-info-modify-modal .i3nb-modal-left-pane {
        display: none !important;
    }
    
    .photo-info-modify-modal .i3nb-modal-right-pane {
        width: 100% !important;
    }
    
    .photo-info-modify-container {
        padding: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-save,
    .btn-cancel {
        width: 100%;
    }
}