/* ============================================================
   AS HOSTED GALLERIES - BULK UPLOADER CSS (V3 - Mockup Match)
   Enhanced visual hierarchy, searchable dropdowns, dark header
   ============================================================ */

:root {
    --bulk-primary: #0066cc;
    --bulk-accent: #1abc9c;
    --bulk-success: #28a745;
    --bulk-error: #dc3545;
    --bulk-border: #d0d0d0;
    --bulk-bg: #f5f5f5;
    --bulk-light-bg: #fafbfc;
    --bulk-dark-start: #1a1a2e;
    --bulk-dark-end: #16213e;
}

/* ============================================================
   FORM WRAPPER (Header + Container)
   ============================================================ */

.sgd-bulk-form-wrapper {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
}

/* ============================================================
   HEADER WITH TABS
   ============================================================ */

.sgd-bulk-header-tabs {
    display: flex;
    background: linear-gradient(90deg, var(--bulk-primary) 0%, var(--bulk-accent) 100%);
    gap: 0;
}

.sgd-bulk-tab-btn {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sgd-bulk-tab-btn:hover:not(.sgd-bulk-tab-active) {
    background: rgba(0, 0, 0, 0.1);
}

.sgd-bulk-tab-btn.sgd-bulk-tab-active {
    background: rgba(0, 0, 0, 0.15);
}

.sgd-bulk-tab-icon {
    font-size: 16px;
}

/* ============================================================
   PHOTOGRAPHER HEADER (Dark Gradient)
   ============================================================ */

.sgd-photographer-header {
    background: linear-gradient(135deg, var(--bulk-dark-start) 0%, var(--bulk-dark-end) 100%);
    color: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.sgd-photographer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sgd-photographer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sgd-photographer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.sgd-photographer-details h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: white;
}

.sgd-photographer-details span {
    font-size: 13px;
    color: #a0aec0;
}

/* Social Toggle in Header */
.sgd-social-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sgd-social-toggle-label {
    font-size: 13px;
    color: #a0aec0;
}

.sgd-social-toggle-btn {
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    background: #4a5568;
    color: #a0aec0;
}

.sgd-social-toggle-btn:hover {
    background: #5a6578;
}

.sgd-social-toggle-btn.active {
    background: #48bb78;
    color: white;
}

/* ============================================================
   BULK UPLOAD CONTAINER
   ============================================================ */

.sgd-bulk-upload-container {
    background: white;
    padding: 24px;
}

/* Page Title */
.sgd-page-title {
    text-align: center;
    margin-bottom: 24px;
}

.sgd-page-title h2 {
    font-size: 22px;
    color: #1a1a2e;
    margin: 0 0 6px 0;
}

.sgd-page-title p {
    color: #718096;
    font-size: 14px;
    margin: 0;
}

/* Form Section */
.sgd-form-section {
    margin-bottom: 28px;
}

/* Section Header with blue underline */
.sgd-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3182ce;
}

.sgd-section-header h3 {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.sgd-required {
    color: #e53e3e;
}

/* Field hint text */
.sgd-field-hint {
    font-size: 10px;
    font-weight: normal;
    color: #999;
}

/* Hidden sections (Organization, Photographer info) */
.sgd-hidden-section {
    display: none !important;
}

/* Legacy section heading (for compatibility) */
.sgd-bulk-section-heading {
    font-size: 13px;
    font-weight: 700;
    margin: 28px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #3182ce;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sgd-bulk-subsection {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ============================================================
   FORM GRID LAYOUTS
   ============================================================ */

.sgd-bulk-form-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

/* Full width grid (1 column) */
.sgd-bulk-form-full {
    grid-template-columns: 1fr;
}

/* 3 column grid */
.sgd-bulk-form-3col {
    grid-template-columns: repeat(3, 1fr);
}

/* 2 column grid */
.sgd-bulk-form-2col {
    grid-template-columns: repeat(2, 1fr);
}

/* 1 column */
.sgd-bulk-form-1col {
    grid-template-columns: 1fr;
}

.sgd-bulk-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sgd-bulk-field label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.3px;
    margin-bottom: 0;
}

.sgd-bulk-field input[type="text"],
.sgd-bulk-field input[type="date"],
.sgd-bulk-field input[type="email"],
.sgd-bulk-field input[type="number"],
.sgd-bulk-field input[type="url"],
.sgd-bulk-field select {
    height: 44px !important;
    padding: 10px 12px !important;
    border: 1px solid var(--bulk-border) !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-family: inherit;
    color: #1e1e1e;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: normal;
    width: 100%;
    box-sizing: border-box;
}

.sgd-bulk-field input:focus,
.sgd-bulk-field select:focus {
    outline: none;
    border-color: var(--bulk-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    background: white;
}

/* ============================================================
   CARD-STYLE FIELD WRAPPER (Mockup Match)
   ============================================================ */

.sgd-field-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.sgd-field-card .sgd-bulk-field {
    gap: 8px;
}

.sgd-field-card .sgd-bulk-field input {
    background: white;
}

/* Helper text below label */
.sgd-field-helper {
    font-size: 12px;
    color: #718096;
    font-weight: 400;
    margin-top: 2px;
    margin-bottom: 4px;
}

/* ============================================================
   NUMBER OF PHOTOS SECTION
   ============================================================ */
#sgd-photo-count-section {
    margin-top: 20px;
}

#sgd-photo-count-section .sgd-section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

.sgd-photo-count-display {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 15px;
    color: #4a5568;
    font-weight: 500;
}

#sgd-photo-count-input-wrapper {
    margin-top: 0;
}

#sgd-photo-count-input-wrapper .sgd-bulk-field input {
    max-width: 200px;
}

/* ============================================================
   SEARCHABLE TEAM DROPDOWNS - WORKING STYLE
   ============================================================ */

.sgd-bulk-teams-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 16px;
}

.sgd-bulk-team-group {
    display: flex;
    flex-direction: column;
}

.sgd-bulk-team-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.sgd-bulk-searchable-dropdown {
    position: relative;
}

.sgd-bulk-team-search {
    width: 100%;
    height: 44px !important;
    padding: 10px 12px !important;
    border: 1px solid var(--bulk-border) !important;
    border-radius: 6px !important;
    font-size: 14px;
    font-family: inherit;
    background: white;
    transition: all 0.2s;
    box-sizing: border-box;
}

.sgd-bulk-team-search:focus {
    outline: none;
    border-color: var(--bulk-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    background: white;
}

/* Dropdown Menu - Shows below input */
.sgd-bulk-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--bulk-border);
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: -1px;
    display: none;
}

/* Show dropdown when visible */
.sgd-bulk-dropdown-menu.sgd-bulk-dropdown-visible {
    display: block;
}

/* Individual option */
.sgd-bulk-dropdown-option {
    padding: 12px 12px;
    cursor: pointer;
    color: #1e1e1e;
    font-size: 13px;
    transition: all 0.15s;
    border-bottom: 1px solid #f0f0f0;
    user-select: none;
}

.sgd-bulk-dropdown-option:last-child {
    border-bottom: none;
}

.sgd-bulk-dropdown-option:hover {
    background: #f0f7ff;
    color: var(--bulk-primary);
    font-weight: 500;
}

.sgd-bulk-dropdown-option.selected {
    background: var(--bulk-primary);
    color: white;
    font-weight: 600;
}

.sgd-bulk-dropdown-option.sgd-bulk-dropdown-other {
    border-top: 1px solid #d0d0d0;
    margin-top: 4px;
    padding-top: 8px;
    font-style: italic;
    color: #999;
}

.sgd-bulk-dropdown-option.sgd-bulk-dropdown-other:hover {
    color: var(--bulk-primary);
    background: #f0f7ff;
}

/* ============================================================
   BUTTON GROUPS (Assignment Type, Upload Destination)
   ============================================================ */

.sgd-btn-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.sgd-btn-group-3 {
    grid-template-columns: repeat(3, 1fr);
}

.sgd-btn-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.sgd-btn-option svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.sgd-btn-option:hover:not(.active):not(.selected) {
    border-color: var(--bulk-primary);
    background: #f8fafc;
    color: var(--bulk-primary);
}

.sgd-btn-option.active,
.sgd-btn-option.selected {
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    color: white;
    border-color: #2563eb;
}

.sgd-btn-option.active svg,
.sgd-btn-option.selected svg {
    fill: white;
}

/* Legacy assignment buttons (for compatibility) */
.sgd-bulk-assignment-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.sgd-bulk-assignment-btn {
    height: 44px !important;
    padding: 10px 16px;
    border: 2px solid var(--bulk-border) !important;
    border-radius: 8px !important;
    background: white !important;
    color: #666 !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sgd-bulk-assignment-btn:hover:not(.active) {
    background: var(--bulk-light-bg) !important;
    border-color: var(--bulk-primary) !important;
    color: var(--bulk-primary) !important;
}

.sgd-bulk-assignment-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%) !important;
    color: white !important;
    border-color: #2563eb !important;
}

/* Assignment Type - Specific Active Colors */
.sgd-bulk-assignment-btn[data-type="paid"].active {
    background: #f0fff4 !important;
    border-color: #48bb78 !important;
    color: #2f855a !important;
}

.sgd-bulk-assignment-btn[data-type="volunteer"].active {
    background: #fffaf0 !important;
    border-color: #ed8936 !important;
    color: #c05621 !important;
}

/* ============================================================
   DROPZONE AREA (Cover + Photos side by side)
   ============================================================ */

.sgd-dropzone-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    margin-top: 16px;
}

.sgd-dropzone-cover,
.sgd-dropzone-photos {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sgd-dropzone-cover:hover,
.sgd-dropzone-photos:hover {
    border-color: var(--bulk-primary);
    background: #f0f7ff;
}

.sgd-dropzone-cover.as-dragover,
.sgd-dropzone-photos.as-dragover {
    border-color: var(--bulk-primary);
    border-style: solid;
    background: #e3f2fd;
}

.sgd-dropzone-cover svg,
.sgd-dropzone-photos svg {
    width: 32px;
    height: 32px;
    color: #a0aec0;
    margin-bottom: 8px;
}

.sgd-dropzone-label {
    font-size: 13px;
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 4px;
}

.sgd-dropzone-label a {
    color: var(--bulk-primary);
    text-decoration: none;
    font-weight: 600;
}

.sgd-dropzone-label a:hover {
    text-decoration: underline;
}

.sgd-dropzone-hint {
    font-size: 11px;
    color: #a0aec0;
}

/* Cover dropzone specific */
.sgd-dropzone-cover {
    min-height: 140px;
}

/* Photos dropzone specific */
.sgd-dropzone-photos {
    min-height: 140px;
}

/* File count */
.sgd-file-count {
    margin: 12px 0;
    font-size: 13px;
    color: #666;
}

/* Legacy dropzone styles (for JS compatibility) */
.sgd-bulk-upload-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.sgd-bulk-upload-column {
    display: flex;
    flex-direction: column;
}

.sgd-bulk-dropzone-small {
    min-height: 140px;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sgd-bulk-dropzone-small:hover {
    border-color: var(--bulk-primary);
    background: #f0f7ff;
}

.sgd-bulk-dropzone-small.as-dragover {
    border-color: var(--bulk-primary);
    border-style: solid;
    background: #e3f2fd;
}

.sgd-bulk-upload-icon-small {
    width: 32px;
    height: 32px;
    color: #a0aec0;
    display: block;
    margin-bottom: 8px;
}

.sgd-bulk-dropzone-text-small {
    font-size: 13px;
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 4px;
}

.sgd-bulk-help-text-small {
    font-size: 11px;
    color: #a0aec0;
}

.sgd-bulk-dropzone-large {
    min-height: 140px;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sgd-bulk-dropzone-large:hover {
    border-color: var(--bulk-primary);
    background: #f0f7ff;
}

.sgd-bulk-dropzone-large.as-dragover {
    border-color: var(--bulk-primary);
    border-style: solid;
    background: #e3f2fd;
}

.sgd-bulk-upload-icon-large {
    width: 32px;
    height: 32px;
    color: #a0aec0;
    display: block;
    margin-bottom: 8px;
}

.sgd-bulk-dropzone-text {
    font-size: 13px;
    color: #4a5568;
    font-weight: 500;
    margin: 8px 0 4px 0;
}

.sgd-bulk-browse-link {
    color: var(--bulk-primary);
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
}

.sgd-bulk-browse-link:hover {
    text-decoration: underline;
}

.sgd-bulk-help-text {
    font-size: 11px;
    color: #a0aec0;
    margin: 0;
}

/* ============================================================
   CLEAN DROPZONE CARD STYLES (Mockup Match)
   ============================================================ */

.sgd-bulk-dropzone-card {
    min-height: 120px;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sgd-bulk-dropzone-card:hover {
    border-color: #a0aec0;
    background: #fafafa;
}

.sgd-bulk-dropzone-card.as-dragover {
    border-color: var(--bulk-primary);
    border-style: solid;
    background: #f0f7ff;
}

.sgd-dropzone-icon {
    width: 36px;
    height: 36px;
    color: #a0aec0;
    margin-bottom: 12px;
}

.sgd-dropzone-label {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.sgd-dropzone-subtitle {
    font-size: 12px;
    color: #a0aec0;
    font-weight: 400;
}

.sgd-dropzone-text {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 6px;
}

/* Photos dropzone - wider */
.sgd-dropzone-photos {
    flex: 1;
}

.sgd-photos-column {
    flex: 1;
}

/* Cover dropzone with image preview */
#sgd-cover-dropzone.has-cover {
    padding: 8px;
    border-style: solid;
    border-color: #48bb78;
    background: #f0fff4;
    position: relative;
    flex-direction: column;
}

#sgd-cover-dropzone.has-cover .sgd-dropzone-icon,
#sgd-cover-dropzone.has-cover .sgd-dropzone-label,
#sgd-cover-dropzone.has-cover .sgd-dropzone-subtitle {
    display: none;
}

.sgd-cover-preview-wrapper {
    width: 100%;
    flex: 1;
    position: relative;
}

.sgd-cover-preview-wrapper img,
#sgd-cover-dropzone.has-cover img.sgd-bulk-cover-preview {
    width: 100%;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
}

.sgd-cover-delete-link {
    display: block;
    text-align: center;
    font-size: 11px;
    color: #e53e3e;
    text-decoration: none;
    margin-top: 4px;
    cursor: pointer;
}

.sgd-cover-delete-link:hover {
    color: #c53030;
    text-decoration: underline;
}

/* ============================================================
   FILE PREVIEW LIST
   ============================================================ */

.sgd-bulk-preview-container {
    margin-top: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
    background: white;
}

.sgd-bulk-preview-container:empty {
    display: none;
}

.as-preview-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
    position: relative;
    transition: all 0.2s;
}

.as-preview-item:hover {
    border-color: var(--bulk-primary);
}

.as-preview-item:last-child {
    margin-bottom: 0;
}

.as-preview-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
    flex-shrink: 0;
}

.as-preview-info {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.as-preview-name {
    display: block;
    font-size: 12px;
    color: #1e1e1e;
    font-weight: 600;
    margin-bottom: 2px;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.as-preview-size {
    display: block;
    font-size: 11px;
    color: #718096;
}

.as-remove-preview {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: #e53e3e;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: background 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.as-remove-preview:hover {
    background: #c53030;
}

.as-remove-preview svg {
    width: 14px;
    height: 14px;
    fill: white;
}

.as-no-files {
    text-align: center;
    color: #999;
    font-size: 12px;
    padding: 12px;
}

/* ============================================================
   CHECKBOX
   ============================================================ */

.sgd-bulk-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sgd-bulk-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--bulk-primary);
}

.sgd-bulk-checkbox label {
    font-size: 13px;
    color: #1e1e1e;
    cursor: pointer;
    margin: 0;
    text-transform: none;
    font-weight: 400;
}

/* ============================================================
   ACTION BUTTONS (4-column grid)
   ============================================================ */

.sgd-action-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 16px;
}

.sgd-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.sgd-action-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.sgd-action-btn.primary {
    background: var(--bulk-success);
    color: white;
}

.sgd-action-btn.primary:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.sgd-action-btn.primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.sgd-action-btn.secondary {
    background: white;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.sgd-action-btn.secondary:hover {
    background: #f8fafc;
    border-color: var(--bulk-primary);
    color: var(--bulk-primary);
}

.sgd-action-btn.danger {
    background: white;
    color: #e53e3e;
    border: 1px solid #fed7d7;
}

.sgd-action-btn.danger:hover {
    background: #fff5f5;
    border-color: #e53e3e;
}

/* Legacy action button styles (for compatibility) */
.sgd-bulk-actions {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.sgd-bulk-btn-assignment {
    height: 44px !important;
    padding: 10px 12px;
    background: #ebf8ff !important;
    color: #2b6cb0 !important;
    border: 1px solid #bee3f8 !important;
    border-radius: 8px !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.sgd-bulk-btn-assignment:hover:not(:disabled) {
    background: #bee3f8 !important;
    border-color: #4299e1 !important;
}

.sgd-bulk-btn-assignment:disabled {
    background: #edf2f7 !important;
    color: #a0aec0 !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed;
}

.sgd-bulk-btn-primary {
    height: 44px !important;
    padding: 10px 12px;
    background: var(--bulk-success) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.sgd-bulk-btn-primary:hover:not(:disabled) {
    background: #218838 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.sgd-bulk-btn-primary:disabled {
    background: #ccc !important;
    cursor: not-allowed;
    transform: none;
}

.sgd-bulk-btn-secondary {
    height: 44px !important;
    padding: 10px 12px;
    background: white !important;
    color: #4a5568 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.sgd-bulk-btn-secondary:hover {
    background: #f8fafc !important;
    border-color: var(--bulk-primary) !important;
    color: var(--bulk-primary) !important;
}

/* ============================================================
   STATUS MESSAGES
   ============================================================ */

.sgd-bulk-status {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.sgd-bulk-status.info {
    display: block;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.sgd-bulk-status.uploading {
    display: block;
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.sgd-bulk-status.success {
    display: block;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.sgd-bulk-status.error {
    display: block;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* ============================================================
   UPLOAD MODAL
   ============================================================ */

.sgd-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sgd-upload-modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.sgd-upload-modal-icon {
    width: 64px;
    height: 64px;
    background: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.sgd-upload-modal-icon svg {
    width: 32px;
    height: 32px;
    color: var(--bulk-primary);
}

.sgd-upload-modal-content h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin: 0 0 20px 0;
}

.sgd-progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.sgd-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--bulk-primary);
    transition: width 0.3s ease;
}

.sgd-upload-status {
    color: #718096;
    font-size: 14px;
    margin: 0 0 8px 0;
}

.sgd-upload-file-status {
    color: #a0aec0;
    font-size: 12px;
    margin: 0;
}

/* Success state modal */
.sgd-upload-modal.success .sgd-upload-modal-content {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.sgd-upload-modal.success .sgd-upload-modal-icon {
    background: rgba(255, 255, 255, 0.2);
}

.sgd-upload-modal.success .sgd-upload-modal-icon svg {
    color: white;
}

.sgd-upload-modal.success h3 {
    color: white;
}

.sgd-upload-modal.success .sgd-upload-status {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   TOGGLE BUTTONS - Upload Mode & Social (Legacy)
   ============================================================ */

.ashg-toggle-container {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.ashg-toggle-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.ashg-toggle-btn:hover {
    border-color: var(--bulk-primary);
    background: #f8fafc;
}

.ashg-toggle-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    color: white;
    border-color: #2563eb;
}

/* Upload Destination - Specific Active Colors */
.ashg-toggle-btn[data-mode="photoshelter"].active {
    background: #faf5ff !important;
    border-color: #805ad5 !important;
    color: #553c9a !important;
}

.ashg-toggle-btn[data-mode="bulk"].active {
    background: #e6fffa !important;
    border-color: #38b2ac !important;
    color: #285e61 !important;
}

.ashg-toggle-btn[data-mode="external-url"].active {
    background: #ebf8ff !important;
    border-color: #4299e1 !important;
    color: #2b6cb0 !important;
}

.ashg-toggle-3way {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ashg-toggle-3way .ashg-toggle-btn {
    min-width: 0;
    padding: 14px 16px;
    font-size: 13px;
}

.ashg-social-toggle {
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 15px 0;
}

.ashg-social-toggle:hover {
    border-color: var(--bulk-primary);
    background: #f8fafc;
}

.ashg-social-toggle.active {
    background: var(--bulk-primary);
    color: white;
    border-color: var(--bulk-primary);
}

/* Fix: Social toggle hover state when active */
.ashg-social-toggle.active:hover {
    background: #1565c0 !important;
    color: white !important;
}

/* ============================================================
   HIDDEN ELEMENTS
   ============================================================ */

.sgd-bulk-hidden {
    display: none !important;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 1200px) {
    .sgd-bulk-form-3col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sgd-bulk-teams-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sgd-bulk-upload-grid,
    .sgd-dropzone-row {
        grid-template-columns: 1fr;
    }
    
    .sgd-action-buttons,
    .sgd-bulk-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sgd-btn-group-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .sgd-bulk-upload-container {
        padding: 20px;
    }
    
    .sgd-bulk-form-3col {
        grid-template-columns: 1fr;
    }
    
    .sgd-bulk-form-2col {
        grid-template-columns: 1fr;
    }
    
    .sgd-bulk-teams-container {
        grid-template-columns: 1fr;
    }
    
    .sgd-btn-group,
    .sgd-btn-group-3 {
        grid-template-columns: 1fr 1fr;
    }
    
    .ashg-toggle-3way {
        grid-template-columns: 1fr;
    }
    
    .sgd-photographer-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .sgd-photographer-info {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .sgd-section-header h3 {
        font-size: 12px;
    }
    
    .sgd-bulk-form-grid {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .sgd-bulk-field input[type="text"],
    .sgd-bulk-field input[type="date"],
    .sgd-bulk-field input[type="email"],
    .sgd-bulk-field input[type="number"],
    .sgd-bulk-field input[type="url"],
    .sgd-bulk-field select {
        height: 40px !important;
        font-size: 13px !important;
        padding: 8px 10px !important;
    }
    
    .sgd-bulk-team-search {
        height: 40px;
        font-size: 13px;
        padding: 8px 10px !important;
    }
    
    .sgd-btn-group,
    .sgd-btn-group-3 {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .sgd-action-buttons,
    .sgd-bulk-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .sgd-action-btn,
    .sgd-bulk-btn-primary,
    .sgd-bulk-btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .sgd-dropzone-row {
        grid-template-columns: 1fr;
    }
    
    .sgd-dropzone-cover,
    .sgd-dropzone-photos,
    .sgd-bulk-dropzone-small,
    .sgd-bulk-dropzone-large {
        min-height: 120px;
        padding: 15px;
    }
}