/**
 * Frontend styles - updated with sticky buttons on desktop
 */

/* Float button */
.msp-float-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.msp-float-button:hover {
    background-color: #005a87;
    transform: scale(1.1);
}

.msp-button-text {
    display: none;
}

/* Popup overlay - UPDATED WITH BLUR EFFECT */
.msp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 99999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    /* Blur effect on background */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Popup container - UPDATED FOR STICKY BUTTONS */
.msp-popup {
    background: white;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 0px !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    position: relative;
    z-index: 100000 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* FIX: Reduced padding for smaller gap */
    padding-bottom: 70px;
}

/* Scrollable content - FIX */
.msp-popup-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    /* FIX: Increased padding for proper scroll */
    padding-bottom: 90px;
}

/* Popup header - SIMPLE AND ELEGANT */
.msp-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #0073aa;
    border-radius: 0px 0px 0 0 !important;
    position: relative;
    z-index: 10;
}

.msp-popup-title {
    margin: 0;
    font-size: 18px;
    color: #fff;
    font-weight: 400;
    letter-spacing: -0.3px;
    line-height: 1;
    display: block;
}

.msp-popup-close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    border-radius: 4px;
}

.msp-popup-close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}

/* Form */
.msp-form {
    padding: 20px;
    /* FIX: Remove bottom padding */
    padding-bottom: 0;
}

.msp-form-group {
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* FIX: Last form-group has smaller margin */
.msp-form > .msp-form-group:last-child {
    margin-bottom: 15px !important;
}

.msp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.msp-form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.msp-form-control::placeholder {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #999;
    font-size: 15px;
}

.msp-form-control:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

textarea.msp-form-control {
    resize: vertical;
    min-height: 100px;
}

/* Loading spinner for types */
.msp-loading-types {
    text-align: center;
    padding: 20px;
    color: #666;
}

.msp-loading-types .spinner {
    display: inline-block;
    background: url(/wp-admin/images/spinner.gif) no-repeat;
    background-size: 20px 20px;
    width: 20px;
    height: 20px;
    margin: 0 auto 10px;
}

/* FIXED CONTAINER FOR TYPES */
.msp-type-buttons-container,
#msp-type-buttons-container {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Type selection buttons - with dynamic colors */
.msp-type-buttons {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Type button DIV styling with CSS variables for colors */
.msp-type-btn {
    /* Basic settings */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 8px !important;
    border: 2px solid #e0e0e0 !important;
    background: #fff !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    min-height: 75px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    position: relative !important;
    overflow: visible !important;
    
    /* Text styling */
    text-decoration: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    
    /* Using CSS variables for colors - will be defined by inline styles */
    color: var(--msp-type-color, #333) !important;
}

/* Hover effect */
.msp-type-btn:hover {
    border-color: var(--msp-type-hover-color, #333) !important;
    background: #f8f8f8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

/* Active state */
.msp-type-btn.active {
    border-color: var(--msp-type-active-color, #0073aa) !important;
    background: var(--msp-type-active-bg, #e6f3ff) !important;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1) !important;
}

/* Icon */
.msp-type-icon {
    font-size: 28px !important;
    margin-bottom: 5px !important;
    display: block !important;
    line-height: 1 !important;
}

/* Text */
.msp-type-label {
    font-size: 13px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    word-break: break-word !important;
    color: inherit !important;
}

/* No additional margin */
.msp-type-btn * {
    margin: 0 !important;
    padding: 0 !important;
}

/* Hidden input for type */
#msp-submission-type {
    display: none;
}

/* Messages */
.msp-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
    display: none;
}

.msp-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.msp-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Mobile camera buttons */
.msp-mobile-camera-buttons {
    display: none; /* Hidden by default, shown on mobile */
    gap: 10px;
    margin-bottom: 15px;
}

.msp-camera-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.msp-camera-btn:hover {
    border-color: #999;
    background: #f8f8f8;
}

.msp-camera-btn:active {
    transform: scale(0.98);
}

.msp-camera-icon {
    font-size: 24px;
    line-height: 1;
}

.msp-btn-photo {
    border-color: #2196f3;
    color: #2196f3;
}

.msp-btn-photo:hover {
    background: #e3f2fd;
    border-color: #1976d2;
    color: #1976d2; /* Keep blue text color */
}

.msp-btn-video {
    border-color: #f44336;
    color: #f44336;
}

.msp-btn-video:hover {
    background: #ffebee;
    border-color: #d32f2f;
    color: #d32f2f; /* Darker red for better contrast */
}

/* NEW: Upload error messages */
.msp-upload-errors {
    margin-bottom: 10px;
}

.msp-upload-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c33;
    font-size: 14px;
    margin-bottom: 5px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.msp-error-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.msp-error-text {
    flex: 1;
    line-height: 1.4;
}

.msp-error-close {
    background: transparent;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #c33;
    padding: 0 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.msp-error-close:hover {
    opacity: 1;
}

/* Upload area */
.msp-media-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    background: #fafafa;
    margin-top: 10px;
}

.msp-media-upload-area:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.msp-media-upload-area.dragover {
    border-color: #0073aa;
    background: #e6f3ff;
}

/* Upload icon */
.msp-upload-icon {
    font-size: 48px;
    display: block;
    margin: 0 auto 10px;
    opacity: 0.6;
}

.msp-upload-text {
    margin: 8px 0;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.msp-upload-info,
.msp-upload-formats {
    font-size: 13px;
    color: #666;
    margin: 4px 0;
}

/* Form row for two columns */
.msp-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.msp-form-group.msp-half {
    flex: 1;
    margin-bottom: 0;
}

/* Media preview */
.msp-media-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 4px;
    min-height: 100px;
}

.msp-media-preview:empty {
    display: none;
}

.msp-media-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.msp-media-item img,
.msp-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.msp-media-item .msp-remove-media {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    transition: all 0.2s;
}

.msp-media-item .msp-remove-media:hover {
    background: #ff4444;
    color: white;
}

/* Checkbox styling */
.msp-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
}

.msp-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 2px;
    cursor: pointer;
}

.msp-checkbox-label span {
    line-height: 1.4;
    color: #333;
}

.msp-checkbox-label a {
    color: #0073aa;
    text-decoration: underline;
}

/* Contact fields */
.msp-contact-fields {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

/* Buttons - STICKY ON DESKTOP AND MOBILE */
.msp-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Sticky buttons for desktop - FIXED */
@media (min-width: 601px) {
    .msp-form-actions {
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 600px;
        background: white;
        padding: 12px 20px; /* FIX: Smaller padding */
        margin: 0;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 100;
        display: flex;
        gap: 10px;
        justify-content: flex-end;
        border-radius: 0 0 0px 0px !important;
    }
}

.msp-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
}

.msp-btn-cancel {
    background: #f0f0f0;
    color: #333;
}

.msp-btn-cancel:hover {
    background: #e0e0e0;
}

.msp-btn-primary {
    background: #0073aa;
    color: white;
}

.msp-btn-primary:hover {
    background: #005a87;
}

.msp-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Message styling */
.msp-success-message,
.msp-error-message {
    text-align: center;
    padding: 40px 20px;
}

.msp-success-icon,
.msp-error-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
}

.msp-success-icon {
    color: #4caf50;
}

.msp-error-icon {
    color: #f44336;
}

.msp-success-title,
.msp-error-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.msp-success-title {
    color: #333;
}

.msp-error-title {
    color: #d32f2f;
}

.msp-success-text,
.msp-error-text {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* Progress overlay */
.msp-progress-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    border-radius: 8px;
}

.msp-progress-container {
    text-align: center;
    padding: 40px;
    max-width: 400px;
}

/* Progress Icon with animation */
.msp-progress-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 20px;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.msp-progress-icon.success {
    color: #4caf50;
}

.msp-progress-icon.error {
    color: #f44336;
}

/* Progress title and text */
.msp-progress-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.msp-progress-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Progress Bar Background */
.msp-progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

/* Progress Bar Fill */
.msp-progress-bar-fill {
    height: 100%;
    background: #0073aa;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Animated stripes */
.msp-progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(
        45deg,
        rgba(255,255,255,0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255,255,255,0.15) 50%,
        rgba(255,255,255,0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 20px 20px;
    animation: moveStripes 1s linear infinite;
}

@keyframes moveStripes {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

/* Progress Percentage */
.msp-progress-percent {
    font-size: 14px;
    color: #0073aa;
    font-weight: 600;
}

/* Individual Media Upload Progress */
.msp-media-item-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0,0,0,0.1);
    overflow: hidden;
}

.msp-media-item-progress-fill {
    height: 100%;
    background: #28a745;
    transition: width 0.3s ease;
}

/* Success/Error Result */
.msp-result-message {
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.msp-result-message.success {
    background: #d1f2eb;
    border: 2px solid #5cb85c;
    color: #2d6e2d;
}

.msp-result-message.error {
    background: #fce4e4;
    border: 2px solid #dc3545;
    color: #7a2828;
}

.msp-result-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.msp-result-text {
    font-size: 14px;
    line-height: 1.5;
}

/* Close button after completion */
.msp-progress-close-btn {
    margin-top: 20px;
    padding: 10px 24px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.msp-progress-close-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
}

/* Hide form content when showing progress */
.msp-popup-content.processing .msp-form {
    opacity: 0.3;
    pointer-events: none;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 768px) {
    /* Show buttons only on mobile devices */
    .msp-mobile-camera-buttons {
        display: flex !important;
    }
    
    /* 3 type buttons per row on tablet */
    .msp-type-buttons {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }
    
    .msp-type-btn {
        min-height: 65px !important;
        padding: 8px 6px !important;
    }
    
    .msp-type-icon {
        font-size: 22px !important;
        margin-bottom: 3px !important;
    }
    
    .msp-type-label {
        font-size: 10px !important;
        line-height: 1.1 !important;
    }
    
    /* Media preview on tablet - 4 columns */
    .msp-media-preview {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    /* Fullscreen popup on mobile */
    .msp-popup {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        margin: 0;
        padding-bottom: 10px !important;
        overflow: hidden;
    }
    
    /* Header on mobile - SIMPLE */
    .msp-popup-header {
        border-radius: 0;
        padding: 16px;
        position: sticky;
        top: 0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    /* Header text on mobile */
    .msp-popup-title {
        font-size: 17px;
    }
    
    /* Scrollable content */
    .msp-popup-content {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px;
    }
    
    /* Form padding */
    .msp-form {
        padding: 15px;
    }
    
    .msp-form-row {
        flex-direction: column;
    }
    
    .msp-popup-overlay {
        padding: 0;
    }
    
    /* 3 type buttons per row on mobile */
    #msp-type-buttons-container .msp-type-buttons,
    .msp-type-buttons {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 5px !important;
        width: 100% !important;
    }
    
    .msp-type-btn {
        min-height: 60px !important;
        padding: 6px 4px !important;
    }
    
    .msp-type-icon {
        font-size: 24px !important;
        margin-bottom: 3px !important;
    }
    
    .msp-type-label {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }
    
    /* Fixed footer with buttons */
    .msp-form-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 15px;
        margin: 0;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 100;
        display: flex;
        gap: 10px;
        justify-content: stretch;
    }
    
    /* Mobile buttons side by side, same width */
    .msp-form-actions .msp-btn {
        flex: 1;
        padding: 12px 16px;
        font-size: 15px;
    }
    
    /* Messages with extra padding */
    .msp-message {
        margin-bottom: 90px;
    }
    
    /* Media preview on mobile - 3 columns */
    .msp-media-preview {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 8px;
    }
}

/* Extra small mobile */
@media (max-width: 400px) {
    /* Still 3 columns on very small screens, just smaller */
    .msp-type-buttons {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 4px !important;
    }
    
    .msp-type-btn {
        min-height: 55px !important;
        padding: 5px 3px !important;
    }
    
    .msp-type-icon {
        font-size: 20px !important;
        margin-bottom: 3px !important;
    }
    
    .msp-type-label {
        font-size: 8px !important;
    }
    
    /* Smaller text in action buttons */
    .msp-form-actions .msp-btn {
        font-size: 14px;
        padding: 10px 12px;
    }
}

/* Support for iPhone X and newer with notch */
@supports (padding: max(0px)) {
    @media (max-width: 600px) {
        .msp-popup-header {
            padding-top: max(16px, env(safe-area-inset-top));
        }
        
        .msp-form-actions {
            padding-bottom: max(15px, env(safe-area-inset-bottom));
        }
    }
}

/* Extra rules to override potential theme conflicts */
.msp-popup * {
    box-sizing: border-box !important;
}

.msp-popup input:not([type="checkbox"]):not([type="radio"]),
.msp-popup textarea,
.msp-popup select {
    max-width: 100% !important;
}

/* Reset potential global form styles */
.msp-form input[type="text"],
.msp-form input[type="email"],
.msp-form input[type="tel"],
.msp-form textarea {
    background-color: #fff !important;
    background-image: none !important;
}

/* Extra specific selectors to ensure priority */
.msp-popup .msp-form .msp-form-group {
    width: 100% !important;
    max-width: 100% !important;
}

.msp-popup .msp-form #msp-type-buttons-container {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

.msp-popup .msp-form #msp-type-buttons-container .msp-type-buttons {
    width: 100% !important;
    max-width: 100% !important;
}

/* ========================================
   FIXES FOR UPLOAD ERROR MESSAGES
   ======================================== */

/* Fix overflowing text in error messages */
.msp-upload-error {
    display: flex;
    align-items: flex-start; /* Changed from center for better alignment */
    gap: 8px;
    padding: 10px 12px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c33;
    font-size: 14px;
    margin-bottom: 5px;
    animation: slideDown 0.3s ease;
    position: relative;
    word-break: break-word; /* Added for breaking long words */
}

.msp-error-text {
    flex: 1;
    line-height: 1.4;
    word-wrap: break-word; /* Added */
    overflow-wrap: break-word; /* Added as fallback */
}

/* ========================================
   ADDITIONAL UTILITY CLASSES
   ======================================== */

/* For hiding elements */
.msp-hidden {
    display: none !important;
}

/* For centering text */
.msp-text-center {
    text-align: center;
}

/* Loader animation */
.msp-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Placeholder for empty state */
.msp-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.msp-empty-state-icon {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 10px;
}

.msp-empty-state-text {
    font-size: 16px;
}

/* Animation for show/hide */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.msp-animate-in {
    animation: fadeIn 0.3s ease;
}

/* Focus trap for accessibility */
.msp-focus-trap:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Skip links for screen readers */
.msp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .msp-type-btn {
        border-width: 3px !important;
    }
    
    .msp-btn-primary {
        border: 2px solid white;
    }
    
    .msp-form-control {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .msp-float-button,
    .msp-popup-overlay {
        display: none !important;
    }
}