/* Watermark & Stamps Styles */
.watermark-modal { width: 100%; max-width: 650px; }
.watermark-modal .modal-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 1.5rem; border-radius: 12px 12px 0 0; display: flex; justify-content: space-between; align-items: center; }
.watermark-modal .modal-header h3 { margin: 0; font-size: 1.3rem; }
.watermark-modal .modal-body { padding: 1.5rem; }

/* Tabs */
.watermark-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; border-bottom: 2px solid #e9ecef; }
.wm-tab { padding: 0.75rem 1.5rem; background: transparent; border: none; border-bottom: 3px solid transparent; cursor: pointer; font-weight: 600; color: #6c757d; transition: all 0.3s; }
.wm-tab:hover { color: #667eea; background: #f8f9ff; }
.wm-tab.active { color: #667eea; border-bottom-color: #667eea; background: #f8f9ff; }

/* Tab Content */
.wm-tab-content { display: none; }
.wm-tab-content.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Form Groups */
.wm-form-group { margin-bottom: 1rem; }
.wm-form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #495057; }
.wm-input { width: 100%; padding: 0.75rem; border: 2px solid #dee2e6; border-radius: 8px; font-size: 1rem; }
.wm-input:focus { outline: none; border-color: #667eea; }
.wm-input-small { width: 80px; padding: 0.5rem; border: 2px solid #dee2e6; border-radius: 6px; }
.wm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Image Upload */
.wm-upload-area { margin-bottom: 1.5rem; }
.wm-upload-label { display: flex; flex-direction: column; align-items: center; padding: 2rem; border: 3px dashed #667eea; border-radius: 12px; background: #f8f9ff; cursor: pointer; transition: all 0.3s; }
.wm-upload-label:hover { border-color: #764ba2; background: #f0f2ff; }
.upload-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.image-preview { margin-top: 1rem; text-align: center; }

/* Stamps Grid */
.stamps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stamp-card { padding: 1rem; background: #f8f9fa; border: 2px solid #dee2e6; border-radius: 8px; text-align: center; cursor: pointer; transition: all 0.3s; }
.stamp-card:hover { border-color: #667eea; transform: translateY(-2px); }
.stamp-card.selected { border-color: #667eea; background: #e7f3ff; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); }
.stamp-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.stamp-card strong { display: block; margin: 0.5rem 0; color: #495057; }
.stamp-card small { color: #6c757d; }

/* Pages Section */
.wm-pages-section { padding: 1rem; background: #f8f9fa; border-radius: 8px; margin: 1.5rem 0; }
.wm-pages-section label { font-weight: 600; color: #495057; margin-bottom: 0.5rem; display: block; }
.wm-pages-options { display: flex; gap: 2rem; }
.wm-pages-options label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: normal; }

/* Buttons */
.btn-large { width: 100%; padding: 1rem; font-size: 1.1rem; font-weight: 600; }
.btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4); }
.btn-close { background: rgba(255, 255, 255, 0.2); border: none; color: white; font-size: 1.5rem; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.btn-close:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(90deg); }

/* Responsive */
@media (max-width: 768px) {
    .watermark-modal { width: 95%; }
    .wm-form-row, .stamps-grid { grid-template-columns: 1fr; }
    .watermark-tabs { overflow-x: auto; }
}
