/**
 * ReviewFilter Admin Form Styles
 * Consolidated CSS for all admin forms, cards, and settings pages
 * Based on FORM-STYLE-GUIDE.md
 */

/* ==========================================================================
   CSS Custom Properties (Color Palette)
   ========================================================================== */

:root {
    /* Primary Colors */
    --rf-accent: #2eaef0;
    --rf-accent-hover: #1e9cd8;
    --rf-accent-shadow: rgba(46, 174, 240, 0.15);
    --rf-accent-glow: rgba(46, 174, 240, 0.4);
    --rf-accent-light: rgba(46, 174, 240, 0.1);

    /* Text Colors */
    --rf-text-primary: #1a1a1a;
    --rf-text-secondary: #333;
    --rf-text-muted: #666;
    --rf-text-hint: #888;
    --rf-text-placeholder: #aaa;
    --rf-text-light: #555;

    /* Background Colors */
    --rf-bg-card: #ffffff;
    --rf-bg-input: #fafafa;
    --rf-bg-input-focus: #fff;
    --rf-bg-button-secondary: #f0f2f5;
    --rf-bg-button-secondary-hover: #e4e6eb;
    --rf-bg-icon: #f8f9fa;

    /* Border Colors */
    --rf-border-input: #e8e8e8;
    --rf-border-section: #e8e8e8;

    /* Status Colors */
    --rf-success: #27ae60;
    --rf-success-bg: rgba(39, 174, 96, 0.12);
    --rf-error: #e74c3c;
    --rf-error-bg: rgba(231, 76, 60, 0.12);
    --rf-danger: #ff6b6b;
    --rf-danger-hover: #ff5252;
    --rf-warning: #f5a623;
    --rf-star: #f5a623;
}

/* ==========================================================================
   Card Containers
   ========================================================================== */

/* Wide Card - 1200px max width */
.wide-card {
    background: var(--rf-bg-card);
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 1200px;
    margin: 0 auto;
}

/* Standard Settings Card - 700px max width */
.settings-card {
    background: var(--rf-bg-card);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 700px;
    margin: 0 auto;
}

/* Medium Card - 600px max width (for simpler forms like upload) */
.medium-card {
    background: var(--rf-bg-card);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Card Headers
   ========================================================================== */

.card-header {
    text-align: center;
    margin-bottom: 32px;
}

.card-header-icon {
    width: 64px;
    height: 64px;
    background: var(--rf-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.card-header-icon.large {
    width: 72px;
    height: 72px;
}

.card-header-icon i {
    font-size: 28px;
    color: var(--rf-accent);
}

.card-header-icon.large i {
    font-size: 32px;
}

.card-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--rf-text-primary);
    margin: 0 0 8px 0;
}

.card-header p {
    font-size: 15px;
    color: var(--rf-text-muted);
    margin: 0;
    text-align: center;
}

/* ==========================================================================
   Form Sections
   ========================================================================== */

.form-section {
    margin-bottom: 28px;
}

.form-section + .form-section {
    margin-top: 36px;
}

.form-section-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--rf-text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--rf-border-section);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title i {
    color: var(--rf-accent);
}

/* ==========================================================================
   Form Groups & Labels
   ========================================================================== */

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

.form-label {
    display: block;
    font-weight: 500;
    color: var(--rf-text-secondary);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-label.strong {
    font-weight: 600;
    color: var(--rf-text-primary);
}

.form-required {
    color: var(--rf-accent);
    font-weight: 600;
}

.form-hint {
    font-size: 13px;
    color: var(--rf-text-hint);
    margin-top: 8px;
    line-height: 1.5;
}

/* ==========================================================================
   Form Inputs
   ========================================================================== */

.form-input {
    width: 100%;
    border: 2px solid var(--rf-border-input);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    background: var(--rf-bg-input);
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--rf-accent);
    box-shadow: 0 0 0 3px var(--rf-accent-shadow);
    outline: none;
    background: var(--rf-bg-input-focus);
}

.form-input::placeholder {
    color: var(--rf-text-placeholder);
}

.form-input[readonly],
.form-input:read-only {
    background: #f0f2f5;
    color: var(--rf-text-muted);
    cursor: not-allowed;
}

/* Select Dropdowns */
.form-select {
    width: 100%;
    border: 2px solid var(--rf-border-input);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--rf-bg-input);
    box-sizing: border-box;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--rf-accent);
    box-shadow: 0 0 0 3px var(--rf-accent-shadow);
    outline: none;
    background-color: var(--rf-bg-input-focus);
}

/* ==========================================================================
   Input with Suffix (e.g., "hours", "days", "stars")
   ========================================================================== */

.input-with-suffix {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 100%;
    border: 2px solid var(--rf-border-input);
    border-radius: 10px;
    background: var(--rf-bg-input);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.input-with-suffix:focus-within {
    border-color: var(--rf-accent);
    box-shadow: 0 0 0 3px var(--rf-accent-shadow);
    background: var(--rf-bg-input-focus);
}

.input-with-suffix .form-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 16px;
    font-size: 15px;
    outline: none;
    min-width: 0;
}

.input-with-suffix .form-input:focus {
    box-shadow: none;
}

.input-suffix {
    padding: 0 16px 0 0;
    color: var(--rf-text-hint);
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    white-space: nowrap;
}

.input-suffix i {
    color: var(--rf-accent);
}

/* ==========================================================================
   Input with Icon (Left)
   ========================================================================== */

.input-with-icon {
    position: relative;
}

.input-with-icon .form-input {
    padding-left: 42px;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rf-accent);
    font-size: 16px;
}

/* ==========================================================================
   Input with Prefix (e.g., "howdidwe.do/")
   ========================================================================== */

.input-with-prefix {
    display: flex;
    align-items: center;
    background: var(--rf-bg-input);
    border: 2px solid var(--rf-border-input);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-with-prefix:focus-within {
    border-color: var(--rf-accent);
    box-shadow: 0 0 0 3px var(--rf-accent-shadow);
}

.input-prefix {
    padding: 12px 0 12px 16px;
    color: var(--rf-text-muted);
    font-size: 15px;
    background: var(--rf-bg-input);
    white-space: nowrap;
}

.input-with-prefix .form-input {
    border: none;
    background: transparent;
    padding-left: 4px;
}

.input-with-prefix .form-input:focus {
    box-shadow: none;
    border: none;
}

/* ==========================================================================
   Toggle Switch
   ========================================================================== */

.toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-container.boxed {
    background: var(--rf-bg-input);
    border: 2px solid var(--rf-border-input);
    border-radius: 10px;
    padding: 16px 20px;
    gap: 16px;
    transition: border-color 0.2s ease;
}

.toggle-container.boxed:hover {
    border-color: var(--rf-accent);
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--rf-border-input);
    transition: all 0.3s ease;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--rf-accent);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px var(--rf-accent-shadow);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.toggle-label {
    font-size: 15px;
    color: var(--rf-text-secondary);
    font-weight: 500;
}

.toggle-hint {
    font-size: 12px;
    color: var(--rf-text-hint);
    margin-top: 4px;
}

/* ==========================================================================
   Custom Checkbox
   ========================================================================== */

.form-checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    padding: 8px 0;
}

.form-checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.form-checkbox-custom {
    width: 20px;
    height: 20px;
    background: var(--rf-bg-input);
    border: 2px solid var(--rf-border-input);
    border-radius: 6px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.form-checkbox-input:checked + .form-checkbox-custom {
    background: var(--rf-accent);
    border-color: var(--rf-accent);
}

.form-checkbox-input:checked + .form-checkbox-custom::after {
    content: '\f00c';
    font-family: FontAwesome;
    color: white;
    font-size: 12px;
}

.form-checkbox-input:focus + .form-checkbox-custom {
    box-shadow: 0 0 0 3px var(--rf-accent-shadow);
}

.form-checkbox-label {
    color: var(--rf-text-light);
    font-weight: 400;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

/* Primary Button */
.btn-primary-form {
    padding: 14px 40px;
    background: var(--rf-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary-form:hover {
    background: var(--rf-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--rf-accent-glow);
    color: white;
    text-decoration: none;
}

.btn-primary-form:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 174, 240, 0.3), 0 6px 20px var(--rf-accent-glow);
    background: var(--rf-accent-hover);
}

.btn-primary-form:active {
    transform: translateY(0);
}

.btn-primary-form:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-primary-form i {
    font-size: 14px;
}

/* Secondary Button */
.btn-secondary-form {
    padding: 14px 40px;
    background: var(--rf-bg-button-secondary);
    color: var(--rf-text-muted);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary-form:hover {
    background: var(--rf-bg-button-secondary-hover);
    transform: translateY(-1px);
    color: var(--rf-text-muted);
    text-decoration: none;
}

.btn-secondary-form:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.3);
}

/* Danger Button */
.btn-danger-form {
    padding: 14px 40px;
    background: var(--rf-danger);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-danger-form:hover {
    background: var(--rf-danger-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-danger-form:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3), 0 6px 20px rgba(255, 107, 107, 0.4);
    background: var(--rf-danger-hover);
}

.btn-danger-form:active {
    transform: translateY(0);
}

.btn-danger-form i {
    font-size: 14px;
}

/* Small Action Button */
.btn-action {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--rf-accent);
    color: white;
}

.btn-action:hover {
    background: var(--rf-accent-hover);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 174, 240, 0.3);
}

/* Icon-only Action Button */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: var(--rf-text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    background: white;
    border: 1px solid var(--rf-border-input);
    cursor: pointer;
    padding: 0;
}

.action-btn:hover {
    text-decoration: none;
}

.action-btn.edit:hover {
    background: var(--rf-accent-light);
    border-color: var(--rf-accent);
    color: var(--rf-accent);
}

.action-btn.delete:hover {
    background: var(--rf-error-bg);
    border-color: var(--rf-error);
    color: var(--rf-error);
}

/* Button Container */
.form-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid var(--rf-border-section);
}

/* ==========================================================================
   Status Badges
   ========================================================================== */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status-badge.enabled {
    background: var(--rf-success-bg);
    color: var(--rf-success);
}

.status-badge.disabled {
    background: var(--rf-error-bg);
    color: var(--rf-error);
}

.status-badge i {
    font-size: 11px;
}

/* ==========================================================================
   Back Link
   ========================================================================== */

.back-link-container {
    text-align: center;
    margin-top: 24px;
}

.back-link-container.bordered {
    padding-top: 24px;
    border-top: 2px solid var(--rf-border-section);
    margin-top: 32px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rf-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--rf-accent);
    text-decoration: none;
}

/* ==========================================================================
   Validation Messages
   ========================================================================== */

.field-validation-error {
    color: var(--rf-error);
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

.validation-summary-errors {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: var(--rf-error);
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 20px;
}

/* ==========================================================================
   Form Layouts (Grids)
   ========================================================================== */

/* Two-column form row */
.form-row {
    display: flex;
    gap: 20px;
}

.form-half {
    flex: 1;
}

/* Three-column form row */
.form-row.three-col {
    display: flex;
    gap: 20px;
}

.form-third {
    flex: 1;
}

/* Grid layouts */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

/* Info Grid (read-only display) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.info-item {
    background: var(--rf-bg-input);
    border-radius: 10px;
    padding: 16px 20px;
    border: 1px solid var(--rf-border-input);
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--rf-text-hint);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.info-value {
    font-size: 15px;
    color: var(--rf-text-primary);
    font-weight: 500;
    word-break: break-word;
}

.info-value.empty {
    color: #bbb;
    font-style: italic;
    font-weight: 400;
}

.info-value a {
    color: var(--rf-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-value a:hover {
    color: var(--rf-accent-hover);
    text-decoration: underline;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.settings-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

/* ==========================================================================
   Setting Cards (for index pages)
   ========================================================================== */

.setting-card {
    background: var(--rf-bg-input);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--rf-border-input);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.2s ease;
}

.setting-card:hover {
    border-color: var(--rf-accent);
    box-shadow: 0 4px 12px var(--rf-accent-light);
}

.setting-card.full-width {
    grid-column: 1 / -1;
}

.setting-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.setting-icon i {
    font-size: 20px;
    color: var(--rf-accent);
}

.setting-content {
    flex: 1;
    min-width: 0;
}

.setting-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--rf-text-primary);
    margin-bottom: 4px;
}

.setting-description {
    font-size: 13px;
    color: var(--rf-text-hint);
    margin-bottom: 12px;
    line-height: 1.4;
}

.setting-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--rf-text-primary);
}

.setting-value .unit {
    font-size: 14px;
    font-weight: 500;
    color: var(--rf-text-muted);
    margin-left: 4px;
}

/* ==========================================================================
   Template/Item Lists
   ========================================================================== */

.template-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.template-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--rf-bg-input);
    border-radius: 10px;
    margin-bottom: 10px;
    gap: 20px;
    transition: background-color 0.2s ease;
}

.template-item:hover {
    background: #f5f5f5;
}

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

.template-item-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.template-item-icon {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--rf-border-input);
}

.template-item-icon i {
    font-size: 18px;
    color: var(--rf-accent);
}

.template-item-content {
    flex: 1;
    min-width: 0;
}

.template-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--rf-text-primary);
    margin-bottom: 3px;
}

.template-item-subject,
.template-item-preview {
    font-size: 13px;
    color: var(--rf-text-hint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.template-item-right,
.template-item-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--rf-text-hint);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--rf-bg-icon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.empty-state-icon i {
    font-size: 36px;
    color: #ccc;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--rf-text-primary);
    margin: 0 0 8px 0;
}

.empty-state p {
    font-size: 15px;
    color: var(--rf-text-hint);
    margin: 0;
}

/* ==========================================================================
   Color Display
   ========================================================================== */

.color-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid var(--rf-border-input);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.color-code {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 16px;
    font-weight: 600;
    color: var(--rf-text-primary);
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--rf-border-input);
}

/* ==========================================================================
   Name/Title Display Box
   ========================================================================== */

.template-name-display,
.page-name-display {
    background: linear-gradient(135deg, rgba(46, 174, 240, 0.08) 0%, rgba(46, 174, 240, 0.03) 100%);
    border: 2px solid rgba(46, 174, 240, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.template-name-display i,
.page-name-display i {
    color: var(--rf-accent);
    font-size: 18px;
}

.template-name-display .template-name-label,
.page-name-display .page-name-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--rf-text-hint);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.template-name-display .template-name-value,
.page-name-display .page-name-value {
    font-size: 17px;
    font-weight: 600;
    color: var(--rf-text-primary);
}

/* ==========================================================================
   Response/Message Area
   ========================================================================== */

.form-response-area {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    margin-top: 8px;
}

.form-response-area i {
    margin-right: 8px;
    font-size: 18px;
}

.form-response-area .fa-check-circle {
    color: var(--rf-success);
}

.form-response-area .fa-exclamation-circle {
    color: var(--rf-error);
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */

.rf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.rf-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: rfFadeIn 0.3s ease;
}

.rf-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: rfModalSlideIn 0.3s ease forwards;
}

.rf-modal.show .rf-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.rf-modal-icon {
    margin-bottom: 20px;
    animation: rfIconPulse 0.5s ease;
}

.rf-modal-icon svg {
    filter: drop-shadow(0 4px 12px rgba(46, 174, 240, 0.3));
}

.rf-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--rf-text-primary);
    margin-bottom: 8px;
}

.rf-modal-subtitle {
    font-size: 15px;
    color: var(--rf-text-muted);
    margin-bottom: 24px;
}

.rf-modal-highlight {
    font-size: 18px;
    font-weight: 600;
    color: var(--rf-danger);
    margin: 16px 0;
    padding: 12px 16px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--rf-danger);
}

.rf-modal-warning {
    font-size: 13px;
    color: var(--rf-text-hint);
    margin: 20px 0 28px;
    padding: 12px 16px;
    background: #f9f9f9;
    border-radius: 8px;
    line-height: 1.5;
}

.rf-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Modal Animations */
@keyframes rfFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes rfModalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes rfIconPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Rich Text Editor Wrapper
   ========================================================================== */

.editor-wrapper {
    border: 2px solid var(--rf-border-input);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.editor-wrapper:focus-within {
    border-color: var(--rf-accent);
    box-shadow: 0 0 0 3px var(--rf-accent-shadow);
}

.editor-wrapper .e-richtexteditor {
    border: none !important;
}

.editor-wrapper .e-rte-container {
    border: none !important;
}

.editor-wrapper .e-toolbar {
    border-bottom: 1px solid var(--rf-border-input) !important;
    background: var(--rf-bg-input) !important;
}

.editor-wrapper .e-rte-content {
    min-height: 400px !important;
}

.editor-wrapper .e-content {
    min-height: 400px !important;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Tablet */
@media (max-width: 992px) {
    .form-row.three-col {
        flex-wrap: wrap;
    }

    .form-row.three-col .form-third {
        flex: 1 1 calc(50% - 10px);
    }

    .form-row.three-col .form-third:last-child {
        flex: 1 1 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid.three-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid.three-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid.three-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .settings-grid.three-col .setting-card:last-child {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .wide-card,
    .settings-card,
    .medium-card {
        padding: 24px;
        margin: 0 16px;
    }

    .card-header h2 {
        font-size: 22px;
    }

    .form-row,
    .form-row.three-col {
        flex-direction: column;
        gap: 0;
    }

    .form-row.three-col .form-third {
        flex: 1 1 100%;
    }

    .form-grid,
    .form-grid.three-col {
        grid-template-columns: 1fr;
    }

    .info-grid,
    .info-grid.three-col {
        grid-template-columns: 1fr;
    }

    .settings-grid,
    .settings-grid.three-col {
        grid-template-columns: 1fr;
    }

    .settings-grid.three-col .setting-card:last-child {
        grid-column: auto;
    }

    .form-buttons {
        flex-direction: column;
    }

    .btn-primary-form,
    .btn-secondary-form,
    .btn-danger-form {
        width: 100%;
    }

    .template-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .template-item-left {
        width: 100%;
    }

    .template-item-right,
    .template-item-actions {
        width: 100%;
        justify-content: space-between;
    }

    .template-item-subject,
    .template-item-preview {
        white-space: normal;
    }

    .template-name-display,
    .page-name-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .rf-modal-content {
        padding: 30px 20px;
    }

    .rf-modal-buttons {
        flex-direction: column;
    }

    .rf-modal-buttons .btn-secondary-form,
    .rf-modal-buttons .btn-danger-form {
        width: 100%;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .rf-modal-content {
        width: 95%;
        padding: 24px 16px;
    }
}

/* ==========================================================================
   DataTables Styling
   ========================================================================== */

.dataTables_wrapper {
    margin-top: 16px;
}

.dataTable {
    border-collapse: separate !important;
    border-spacing: 0;
    width: 100% !important;
}

.dataTable thead th {
    background: var(--rf-bg-input);
    color: var(--rf-text-secondary);
    font-weight: 600;
    font-size: 13px;
    padding: 14px 16px;
    border-bottom: 2px solid var(--rf-border-section);
    text-align: left;
}

.dataTable tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--rf-border-section);
    font-size: 14px;
    color: var(--rf-text-secondary);
    vertical-align: middle;
}

.dataTable tbody tr:hover {
    background-color: var(--rf-accent-light);
}

.dataTable tbody tr:last-child td {
    border-bottom: none;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info {
    font-size: 13px;
    color: var(--rf-text-muted);
    margin-bottom: 12px;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 8px 12px;
    border: 1px solid var(--rf-border-input);
    border-radius: 8px;
    font-size: 14px;
    margin-left: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dataTables_wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: var(--rf-accent);
    box-shadow: 0 0 0 3px var(--rf-accent-shadow);
}

.dataTables_wrapper .dataTables_length select {
    padding: 6px 10px;
    border: 1px solid var(--rf-border-input);
    border-radius: 6px;
    font-size: 14px;
    margin: 0 6px;
}

.dataTables_wrapper .dataTables_paginate {
    margin-top: 16px;
    padding: 12px 0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid var(--rf-border-input) !important;
    border-radius: 6px;
    font-size: 13px;
    color: var(--rf-text-secondary) !important;
    background: var(--rf-bg-card) !important;
    transition: all 0.2s;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--rf-bg-input) !important;
    border-color: var(--rf-accent) !important;
    color: var(--rf-accent) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--rf-accent) !important;
    border-color: var(--rf-accent) !important;
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: var(--rf-bg-card) !important;
    border-color: var(--rf-border-input) !important;
    color: var(--rf-text-muted) !important;
}

/* DataTable action buttons */
.btn-download {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
    background: var(--rf-accent);
    color: white;
    text-decoration: none;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-download:hover {
    background: var(--rf-accent-hover);
    color: white;
    text-decoration: none;
}

/* ==========================================================================
   Info Badges (inline metadata display)
   ========================================================================== */

.info-badges {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.info-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--rf-text-muted);
}

.info-badge i {
    color: var(--rf-accent);
    font-size: 14px;
}

.info-badge strong {
    color: var(--rf-text-secondary);
}

@media (max-width: 768px) {
    .info-badges {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ==========================================================================
   Upload Dropzone
   ========================================================================== */

.upload-dropzone {
    border: 2px dashed var(--rf-border-input);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: var(--rf-bg-input);
    transition: all 0.2s ease;
    cursor: pointer;
}

.upload-dropzone:hover {
    border-color: var(--rf-accent);
    background: var(--rf-accent-light);
}

.upload-dropzone.dragover {
    border-color: var(--rf-accent);
    background: var(--rf-accent-light);
}

.upload-icon {
    font-size: 48px;
    color: var(--rf-accent);
    margin-bottom: 16px;
}

.upload-text {
    font-size: 16px;
    color: var(--rf-text-secondary);
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 13px;
    color: var(--rf-text-muted);
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.selected-file {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--rf-success-bg);
    border-radius: 8px;
    display: none;
    align-items: center;
    gap: 10px;
}

.selected-file.show {
    display: flex;
}

.selected-file i {
    color: var(--rf-success);
}

.selected-file-name {
    flex: 1;
    font-size: 14px;
    color: var(--rf-text-secondary);
    word-break: break-all;
}

.image-requirements {
    margin-top: 20px;
    padding: 16px;
    background: var(--rf-bg-input);
    border-radius: 8px;
}

.image-requirements h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--rf-text-secondary);
    margin: 0 0 12px 0;
}

.image-requirements ul {
    margin: 0;
    padding-left: 20px;
}

.image-requirements li {
    font-size: 13px;
    color: var(--rf-text-muted);
    margin-bottom: 6px;
}

.image-requirements li:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Feature List
   ========================================================================== */

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 8px 0;
    color: var(--rf-text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feature-list li i {
    color: var(--rf-accent);
    margin-top: 3px;
}

/* ==========================================================================
   Quick Links
   ========================================================================== */

.quick-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--rf-bg-input);
    border-radius: 8px;
    color: var(--rf-text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    border: 1px solid var(--rf-border-input);
}

.quick-link:hover {
    background: var(--rf-accent-light);
    border-color: var(--rf-accent);
    color: var(--rf-accent);
    text-decoration: none;
}

.quick-link i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .quick-links {
        flex-direction: column;
    }

    .quick-link {
        justify-content: center;
    }
}

/* ==========================================================================
   Syncfusion Grid Loading Spinner
   ========================================================================== */

/* Override Syncfusion spinner color to match accent */
.e-spinner-pane .e-spinner-inner .e-spin-material,
.e-spinner-pane .e-spinner-inner .e-spin-bootstrap,
.e-spinner-pane .e-spinner-inner .e-spin-bootstrap4,
.e-spinner-pane .e-spinner-inner .e-spin-bootstrap5,
.e-spinner-pane .e-spinner-inner .e-spin-tailwind,
.e-spinner-pane .e-spinner-inner .e-spin-fluent,
.e-spinner-pane .e-spinner-inner .e-spin-fabric {
    stroke: var(--rf-accent) !important;
}

/* Material spinner specific */
.e-spinner-pane .e-spinner-inner svg .e-path-circle {
    stroke: var(--rf-accent) !important;
}

/* Bootstrap spinner arc */
.e-spinner-pane .e-spinner-inner .e-path-arc {
    stroke: var(--rf-accent) !important;
}

/* Generic spinner circle */
.e-spinner-pane .e-spinner-inner svg circle {
    stroke: var(--rf-accent) !important;
}

/* Spinner track (lighter version of accent) */
.e-spinner-pane .e-spinner-inner .e-path-track {
    stroke: var(--rf-accent-light) !important;
}

/* ==========================================================================
   Image Upload Grid
   ========================================================================== */

.image-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.image-upload-card {
    background: var(--rf-bg-input);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-upload-card.logo-card {
    grid-column: span 2;
}

.image-preview {
    width: 100%;
    max-width: 300px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border: 1px solid var(--rf-border-input);
}

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

.image-preview.empty {
    background: linear-gradient(135deg, #f8f9fa 25%, #e9ecef 25%, #e9ecef 50%, #f8f9fa 50%, #f8f9fa 75%, #e9ecef 75%);
    background-size: 20px 20px;
}

.image-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--rf-text-secondary);
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .image-upload-grid {
        grid-template-columns: 1fr;
    }

    .image-upload-card.logo-card {
        grid-column: span 1;
    }
}

/* ==========================================================================
   ContactManager Modal Styles
   Extracted from Views/ContactManager/Index.cshtml
   ========================================================================== */

/* Add Guest Modal Styles */
.add-guest-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.add-guest-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.add-guest-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease forwards;
}

.add-guest-modal.show .add-guest-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.add-guest-modal-icon {
    margin-bottom: 20px;
    animation: iconPulse 0.5s ease;
}

.add-guest-modal-icon svg {
    filter: drop-shadow(0 4px 12px rgba(46, 174, 240, 0.3));
}

.add-guest-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.add-guest-modal-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 24px;
}

.add-guest-form {
    text-align: left;
}

.add-guest-form-group {
    margin-bottom: 16px;
}

.add-guest-form-row {
    display: flex;
    gap: 12px;
}

.add-guest-half {
    flex: 1;
}

.add-guest-label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    font-size: 14px;
}

.add-guest-required {
    color: #2eaef0;
    font-weight: 600;
}

.add-guest-input {
    width: 100%;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.add-guest-input:focus {
    border-color: #2eaef0;
    box-shadow: 0 0 0 3px rgba(46, 174, 240, 0.15);
    outline: none;
    background: #fff;
}

.add-guest-input::placeholder {
    color: #aaa;
}

.add-guest-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.add-guest-input-icon {
    position: relative;
}

.add-guest-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #2eaef0;
    font-size: 16px;
}

.add-guest-input-with-icon {
    padding-left: 42px;
}

/* Custom Checkbox */
.add-guest-checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    padding: 8px 0;
}

.add-guest-checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.add-guest-checkbox-custom {
    width: 20px;
    height: 20px;
    background: #fafafa;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.add-guest-checkbox-input:checked + .add-guest-checkbox-custom {
    background: #2eaef0;
    border-color: #2eaef0;
}

.add-guest-checkbox-input:checked + .add-guest-checkbox-custom::after {
    content: '\f00c';
    font-family: FontAwesome;
    color: white;
    font-size: 12px;
}

.add-guest-checkbox-input:focus + .add-guest-checkbox-custom {
    box-shadow: 0 0 0 3px rgba(46, 174, 240, 0.15);
}

.add-guest-checkbox-label {
    color: #555;
    font-weight: 400;
}

.add-guest-response-area {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    margin-top: 8px;
}

.add-guest-response-area i {
    margin-right: 8px;
    font-size: 18px;
}

.add-guest-response-area .fa-check-circle {
    color: #27ae60;
}

.add-guest-response-area .fa-exclamation-circle {
    color: #e74c3c;
}

#addGuestMessage {
    font-size: 14px;
}

.add-guest-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.add-guest-btn-cancel {
    padding: 12px 28px;
    background: #f0f2f5;
    color: #666;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.add-guest-btn-cancel:hover {
    background: #e4e6eb;
    transform: translateY(-1px);
}

.add-guest-btn-cancel:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.3);
}

.add-guest-btn-submit {
    padding: 12px 28px;
    background: #2eaef0;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-guest-btn-submit:hover {
    background: #1e9cd8;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(46, 174, 240, 0.4);
}

.add-guest-btn-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 174, 240, 0.3), 0 6px 20px rgba(46, 174, 240, 0.4);
    background: #1e9cd8;
}

.add-guest-btn-submit:active {
    transform: translateY(0);
}

.add-guest-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.add-guest-btn-submit i {
    font-size: 14px;
}

/* Delete Confirmation Modal Styles */
.delete-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.delete-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.delete-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease forwards;
}

.delete-modal.show .delete-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.delete-modal-icon {
    margin-bottom: 24px;
    animation: iconPulse 0.5s ease;
}

.delete-modal-icon svg {
    filter: drop-shadow(0 4px 12px rgba(255, 107, 107, 0.3));
}

.delete-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.delete-modal-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.delete-modal-guest-name {
    font-size: 18px;
    font-weight: 600;
    color: #ff6b6b;
    margin: 16px 0;
    padding: 12px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    border-left: 4px solid #ff6b6b;
}

.delete-modal-warning {
    font-size: 14px;
    color: #999;
    margin: 20px 0 32px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    line-height: 1.5;
}

.delete-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.delete-btn-cancel {
    padding: 12px 28px;
    background: #f0f2f5;
    color: #666;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.delete-btn-cancel:hover {
    background: #e4e6eb;
    transform: translateY(-1px);
}

.delete-btn-confirm {
    padding: 12px 28px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.delete-btn-confirm:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff4141 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.delete-btn-confirm:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3), 0 6px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ff5252 0%, #ff4141 100%);
}

.delete-btn-confirm:active {
    transform: translateY(0);
}

.delete-btn-cancel:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.3);
}

.delete-btn-confirm i {
    font-size: 14px;
}

/* ContactManager Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes iconPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive adjustments for Add Guest Modal */
@media (max-width: 480px) {
    .add-guest-modal-content {
        width: 95%;
        padding: 30px 20px;
    }

    .add-guest-form-row {
        flex-direction: column;
        gap: 0;
    }

    .add-guest-modal-buttons {
        flex-direction: column;
        width: 100%;
    }

    .add-guest-btn-cancel,
    .add-guest-btn-submit {
        width: 100%;
    }
}

/* Responsive adjustments for Delete Modal */
@media (max-width: 480px) {
    .delete-modal-content {
        width: 95%;
        padding: 30px 20px;
    }

    .delete-modal-buttons {
        flex-direction: column;
        width: 100%;
    }

    .delete-btn-cancel,
    .delete-btn-confirm {
        width: 100%;
    }
}
