.rpr-media-dashboard {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rpr-media-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #753cf2;
}

.rpr-media-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rpr-media-header h2 i {
    background: linear-gradient(135deg, #753cf2 0%, #b236dc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ensure close button is properly aligned in header */
.rpr-media-header .rpr-dashboard-close {
    margin-left: auto;
    align-self: center;
}

.rpr-dashboard-close {
    background: linear-gradient(135deg, #753cf2 0%, #b236dc 100%) !important;
    border: none !important;
    padding: 8px 16px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    color: #fff !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-shrink: 0 !important;
    font-weight: 500 !important;
    min-width: auto !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 8px rgba(117, 60, 242, 0.2) !important;
    width: auto !important;
    height: auto !important;
    position: relative !important;
    right: auto !important;
    top: auto !important;
}

.rpr-dashboard-close:hover {
    background: linear-gradient(135deg, #6a35e0 0%, #a030c8 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(117,60,242,0.4) !important;
    color: white !important;
}

.rpr-dashboard-close i {
    font-size: 1rem !important;
    color: white !important;
}

.rpr-dashboard-close span {
    position: relative !important;
    z-index: 1 !important;
    color: white !important;
}

.rpr-media-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.rpr-media-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 150px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
}

.rpr-media-filters select:focus {
    outline: none;
    border-color: #753cf2;
    box-shadow: 0 0 0 2px rgba(117,60,242,0.1);
}

.rpr-media-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-right: 10px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    align-content: flex-start;
    justify-content: flex-start;
}

/* Custom scrollbar for media grid */
.rpr-media-grid::-webkit-scrollbar {
    width: 8px;
}

.rpr-media-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.rpr-media-grid::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.rpr-media-grid::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.rpr-media-item {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(117, 60, 242, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f8f5fe;
    flex: 0 0 calc(16.666% - 20px); /* 6 columns with gap - fixed size */

    min-width: 280px;
    max-width: 320px;
    width: 100%;
}

.rpr-media-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(117, 60, 242, 0.15);
    border-color: #753cf2;
}

.rpr-media-preview {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 8px;
}

/* PowerPoint specific styles */
.rpr-media-item[data-type="powerpoint"] .rpr-media-preview {
    background-color: #f8f5fe;
}

.rpr-media-item[data-type="powerpoint"] .rpr-media-preview i {
    font-size: 3rem;
    background: linear-gradient(135deg, #753cf2 0%, #b236dc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Video specific styles */
.rpr-media-item[data-type="video"] .rpr-media-preview {
    background-color: #f8f5fe;
}

.rpr-media-item[data-type="video"] .rpr-media-preview i {
    font-size: 3rem;
    background: linear-gradient(135deg, #753cf2 0%, #b236dc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Article specific styles */
.rpr-media-item[data-type="article"] .rpr-media-preview {
    background-color: #f8f5fe;
}

.rpr-media-item[data-type="article"] .rpr-media-preview i {
    font-size: 3rem;
    background: linear-gradient(135deg, #753cf2 0%, #b236dc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Social media specific styles */
.rpr-media-item[data-type="social"] .rpr-media-preview {
    background-color: #f8f5fe;
    overflow: hidden; /* Ensure images don't overflow the rounded corners */
}

.rpr-media-item[data-type="social"] .rpr-media-preview i {
    font-size: 3rem;
    background: linear-gradient(135deg, #753cf2 0%, #b236dc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Social card image preview styles - no background for images */
.rpr-media-item[data-type="social"] .rpr-media-preview img {
    background: none !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Remove background when displaying image */
.rpr-media-item[data-type="social"] .rpr-media-preview:has(img) {
    background-color: transparent;
    padding: 0;
}

/* Email specific styles */
.rpr-media-item[data-type="email"] .rpr-media-preview {
    background-color: #f8f5fe;
}

.rpr-media-item[data-type="email"] .rpr-media-preview i {
    font-size: 3rem;
    background: linear-gradient(135deg, #753cf2 0%, #b236dc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Video script specific styles */
.rpr-media-item[data-type="video_script"] .rpr-media-preview {
    background-color: #f8f5fe;
}

.rpr-media-item[data-type="video_script"] .rpr-media-preview i {
    font-size: 3rem;
    background: linear-gradient(135deg, #753cf2 0%, #b236dc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Outline specific styles */
.rpr-media-item[data-type="outline"] .rpr-media-preview {
    background-color: #f8f5fe;
}

.rpr-media-item[data-type="outline"] .rpr-media-preview i {
    font-size: 3rem;
    background: linear-gradient(135deg, #753cf2 0%, #b236dc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Report specific styles */
.rpr-media-item[data-type="report"] .rpr-media-preview {
    background-color: #f8f5fe;
}

.rpr-media-item[data-type="report"] .rpr-media-preview i {
    font-size: 3rem;
    background: linear-gradient(135deg, #753cf2 0%, #b236dc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Summary specific styles */
.rpr-media-item[data-type="summary"] .rpr-media-preview {
    background-color: #f8f5fe;
}

.rpr-media-item[data-type="summary"] .rpr-media-preview i {
    font-size: 3rem;
    background: linear-gradient(135deg, #753cf2 0%, #b236dc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rpr-media-info {
    margin-bottom: 1rem;
}

.rpr-media-info h3 {
    font-size: 18px !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.4;
}

.rpr-media-date {
    font-size: 0.9rem;
    color: #666;
}

.rpr-media-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.rpr-media-actions button {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    color: #666;
}

.rpr-media-actions button:hover {
    background-color: #f8f5fe;
    color: #753cf2;
}

.rpr-media-actions button i {
    color: #666;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.rpr-media-actions button:hover i {
    color: #753cf2;
}

.rpr-media-actions a {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    color: #666;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.rpr-media-actions a:hover {
    background-color: #f8f5fe;
    color: #753cf2;
}

.rpr-media-actions a i {
    margin-right: 0;
}

/* Export dropdown styles */
.rpr-export-dropdown {
    position: relative;
    display: inline-block;
}

.rpr-export-toggle-btn {
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    color: #666;
}

.rpr-export-toggle-btn:hover {
    background-color: #f8f5fe;
    color: #753cf2;
}

.rpr-export-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
}

.rpr-export-dropdown.active .rpr-export-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rpr-export-menu button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
    color: #333;
    white-space: nowrap;
}

.rpr-export-menu button:hover {
    background-color: #f8f5fe;
    color: #753cf2;
}

.rpr-export-menu button:first-child {
    border-radius: 6px 6px 0 0;
}

.rpr-export-menu button:last-child {
    border-radius: 0 0 6px 6px;
}

.rpr-export-menu button i {
    margin-right: 8px;
    width: 14px;
    font-size: 0.85rem;
}

/* Share dropdown styles - matching export dropdown */
.rpr-share-dropdown {
    position: relative;
    display: inline-block;
}

.rpr-share-toggle-btn {
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    color: #666;
}

.rpr-share-toggle-btn:hover {
    background-color: #f8f5fe;
    color: #753cf2;
}

.rpr-share-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
}

.rpr-share-dropdown.active .rpr-share-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rpr-share-menu button,
.rpr-share-menu a.rpr-share-download-btn {
    display: block;
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
    font-weight: 400;
    color: #333;
    white-space: nowrap;
    text-decoration: none;
}

.rpr-share-menu button:hover,
.rpr-share-menu a.rpr-share-download-btn:hover {
    background-color: #f8f5fe;
    color: #753cf2;
}

.rpr-share-menu button:first-child,
.rpr-share-menu a.rpr-share-download-btn:first-child {
    border-radius: 6px 6px 0 0;
}

.rpr-share-menu button:last-child,
.rpr-share-menu a.rpr-share-download-btn:last-child {
    border-radius: 0 0 6px 6px;
}

.rpr-share-menu button i,
.rpr-share-menu a.rpr-share-download-btn i {
    margin-right: 8px;
    width: 14px;
    font-size: 0.85rem;
    font-weight: 900 !important;
}

/* Circular sharing buttons for media dashboard */
.rpr-media-dashboard .rpr-share-buttons-circular {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.rpr-media-dashboard .rpr-share-btn-circular {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    position: relative !important;
}

.rpr-media-dashboard .rpr-share-btn-circular .btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.rpr-media-dashboard .rpr-share-btn-circular i {
    font-size: 1rem !important;
    color: white !important;
    margin: 0 !important;
}

.rpr-media-dashboard .rpr-share-btn-circular span {
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    color: #666 !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

/* Circular button colors for media dashboard */
.rpr-media-dashboard .facebook-btn .btn-icon {
    background: #4267B2;
}

.rpr-media-dashboard .linkedin-btn .btn-icon {
    background: #0077B5;
}

.rpr-media-dashboard .email-btn .btn-icon {
    background: #5a6c7d;
}

.rpr-media-dashboard .qr-btn .btn-icon {
    background: #27ae60;
}

.rpr-media-dashboard .download-btn .btn-icon {
    background: #e74c3c;
}

/* Hover effects for circular media dashboard buttons */
.rpr-media-dashboard .rpr-share-btn-circular:hover .btn-icon {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Responsive adjustments for both export and share dropdowns */
@media (max-width: 768px) {
    .rpr-export-menu,
    .rpr-share-menu {
        min-width: 120px;
        right: 0;
        left: auto;
    }
    
    .rpr-export-menu button,
    .rpr-share-menu button,
    .rpr-share-menu a.rpr-share-download-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .rpr-media-dashboard .rpr-share-buttons-circular {
        gap: 12px;
    }
    
    .rpr-media-dashboard .rpr-share-btn-circular .btn-icon {
        width: 35px;
        height: 35px;
    }
    
    .rpr-media-dashboard .rpr-share-btn-circular i {
        font-size: 0.9rem !important;
    }
    
    .rpr-media-dashboard .rpr-share-btn-circular span {
        font-size: 0.65rem !important;
    }
}

/* No media message */
.rpr-no-media {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
    width: 100%;
    flex: 1 1 100%;
}

.rpr-no-media i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.rpr-no-media p {
    font-size: 1.1rem;
    margin: 0;
}

/* Body scroll control */
body.rpr-modal-open {
    overflow: hidden !important;
}

/* Modals */
.rpr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    overflow-y: auto;
}

.rpr-modal-content {
    position: relative;
    background: #fff;
    margin: 0;
    padding: 0;
    width: 100% !important;
    height: 100vh !important;
    max-width: 100% !important;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden !important;
}

/* Preview modal specific styles */
#rpr-preview-modal .rpr-modal-content {
    padding: 1rem;
}

#rpr-preview-content {
    text-align: center;
}

#rpr-preview-content video {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.rpr-share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.rpr-share-options button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.rpr-share-options button:hover {
    background: #f8f5fe;
    border-color: #753cf2;
    color: #753cf2;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(117, 60, 242, 0.15);
}

.rpr-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.rpr-confirm-delete {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.rpr-confirm-delete:hover {
    background: #c82333;
}

.rpr-cancel-delete {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.rpr-cancel-delete:hover {
    background: #5a6268;
}

.rpr-loading {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.rpr-loading i {
    font-size: 2rem;
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Content Editor Styles */
.rpr-content-editor {
    min-height: 300px;
    max-height: 60vh;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-y: auto;
    outline: none;
    margin-bottom: 1rem;
}

.rpr-content-editor:focus {
    border-color: #753cf2;
    box-shadow: 0 0 0 2px rgba(117,60,242,0.1);
}

.rpr-content-editor p {
    margin-bottom: 1rem;
}

.rpr-content-editor h1,
.rpr-content-editor h2,
.rpr-content-editor h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.rpr-editor-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.rpr-save-edit-btn {
    background: linear-gradient(135deg, #753cf2 0%, #b236dc 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.rpr-save-edit-btn:hover {
    background: linear-gradient(135deg, #6a35e0 0%, #a030c8 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(117,60,242,0.3);
}

.rpr-save-edit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.rpr-cancel-edit-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.rpr-cancel-edit-btn:hover {
    background: #5a6268;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rpr-media-dashboard {
        padding: 1rem;
    }
    
    .rpr-media-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .rpr-media-header h2 {
        font-size: 1.3rem;
    }

    .rpr-dashboard-close {
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
        gap: 0.3rem !important;
    }
    
    .rpr-dashboard-close span {
        display: none !important;
    }
    
    .rpr-dashboard-close i {
        font-size: 1.1rem !important;
    }
    
    .rpr-media-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rpr-media-filters select {
        min-width: auto;
        width: 100%;
    }
    
    
    .rpr-media-item {
        flex: 0 0 calc(33.333% - 20px); /* 3 columns with gap - fixed size */
        min-width: 250px;
        max-width: 280px;
    }
    
    .rpr-modal-content {
        margin: 0;
        width: 100%;
        padding: 0;
        height: 100vh;
    }
    
    .rpr-media-item {
        padding: 1rem;
    }
    
    .rpr-share-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 570px) {
    .rpr-media-grid {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .rpr-media-dashboard {
        padding: 0.5rem;
    }
    
    .rpr-media-header h2 {
        font-size: 1.1rem;
    }
    
    .rpr-media-item {
        flex: 0 0 calc(50% - 20px); /* 2 columns with gap - fixed size */
        min-width: 220px;
        max-width: 260px;
    }
    
    .rpr-modal-content {
        margin: 0;
        width: 100%;
        padding: 0;
        height: 100vh;
    }
    
    .rpr-modal-close {
        right: 1rem;
        top: 5px;
    }
}

/* Content Editor Modal Styles */
#rpr-editor-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

#rpr-editor-modal .rpr-modal-content {
    background-color: #fff;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#rpr-editor-modal .rpr-modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
    z-index: 1;
}

#rpr-editor-modal .rpr-modal-close:hover {
    color: #333;
}

#rpr-editor-title {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

#rpr-editor-container {
    margin-bottom: 2rem;
}

.rpr-content-editor {
    min-height: 400px;
    max-height: 600px;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    overflow-y: auto;
    background: #fff;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
}

.rpr-content-editor:focus {
    border-color: #753cf2;
    box-shadow: 0 0 0 3px rgba(117, 60, 242, 0.1);
}

.rpr-content-editor:empty:before {
    content: 'Start editing your content here...';
    color: #999;
    font-style: italic;
}

.rpr-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.rpr-save-edit-btn {
    background: linear-gradient(135deg, #753cf2 0%, #b236dc 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rpr-save-edit-btn:hover {
    background: linear-gradient(135deg, #6a35e0 0%, #a030c8 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(117,60,242,0.3);
}

.rpr-save-edit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.rpr-cancel-edit-btn {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rpr-cancel-edit-btn:hover {
    background: #e0e0e0;
    border-color: #999;
}

/* Responsive adjustments for editor modal */
@media (max-width: 768px) {
    #rpr-editor-modal .rpr-modal-content {
        margin: 1rem auto;
        width: 95%;
        padding: 1.5rem;
        max-height: calc(100vh - 2rem);
    }
    
    #rpr-editor-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .rpr-content-editor {
        min-height: 300px;
        max-height: 400px;
        padding: 1rem;
        font-size: 13px;
    }
    
    .rpr-editor-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .rpr-save-edit-btn,
    .rpr-cancel-edit-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 320px) {
    .rpr-media-item {
        flex: 0 0 100%; /* 1 column - fixed size */
        min-width: auto;
        max-width: none;
    }

} 

/* Facebook Metadata Editor Modal Styles */
#rpr-facebook-metadata-modal-media .rpr-modal-content {
    max-width: 600px !important;
    width: 95% !important;
    height: auto !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    padding: 2rem !important;
    margin: 2% auto !important; /* Ensure proper centering */
    position: relative !important;
    background-color: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

#rpr-facebook-metadata-modal-media h2 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.4rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.75rem;
}

/* Preview Section */
.rpr-fb-preview-section {
    margin-bottom: 2rem;
}

.rpr-fb-preview-section h3 {
    margin-bottom: 1rem;
    color: #555;
    font-size: 1.1rem;
    font-weight: 600;
}

.rpr-fb-preview-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    background: #f9f9f9;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.rpr-fb-preview-content {
    flex: 1;
}

.rpr-fb-preview-title {
    font-weight: 600;
    color: #753cf2;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.3;
}

.rpr-fb-preview-description {
    color: #606770;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.rpr-fb-preview-url {
    color: #8a8d91;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 500;
}

.rpr-fb-preview-media {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    background: #e4e6ea;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #65676b;
    font-size: 0.8rem;
}

.rpr-fb-preview-media i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

/* Editor Section */
.rpr-fb-editor-section h3 {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1.1rem;
    font-weight: 600;
}

.rpr-fb-form-group {
    margin-bottom: 1.5rem;
}

.rpr-fb-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.rpr-fb-form-group input,
.rpr-fb-form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    resize: vertical;
}

.rpr-fb-form-group input:focus,
.rpr-fb-form-group textarea:focus {
    outline: none;
    border-color: #753cf2;
    box-shadow: 0 0 0 3px rgba(117, 60, 242, 0.1);
}

.rpr-fb-char-count {
    font-size: 0.8rem;
    color: #8a8d91;
    margin-top: 0.25rem;
    text-align: right;
}

.rpr-fb-hashtag-help {
    font-size: 0.85rem;
    color: #8a8d91;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Modal Actions */
.rpr-fb-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e5e9;
    margin-top: 1rem;
}

.rpr-fb-share-btn {
    background: linear-gradient(135deg, #753cf2 0%, #b236dc 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    min-width: 160px;
    justify-content: center;
}

.rpr-fb-share-btn:hover {
    background: linear-gradient(135deg, #6a35e0 0%, #a030c8 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(117,60,242,0.3);
}

.rpr-fb-share-btn:disabled {
    background: #e4e6ea;
    color: #8a8d91;
    cursor: not-allowed;
}

.rpr-fb-cancel-btn {
    background: #f0f2f5;
    color: #606770;
    border: 1px solid #ddd;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.rpr-fb-cancel-btn:hover {
    background: #e4e6ea;
    border-color: #ccd0d5;
}

/* Character count warnings */
.rpr-fb-char-count.warning {
    color: #fa7970;
}

.rpr-fb-char-count.danger {
    color: #e41e3f;
    font-weight: 600;
}

/* Responsive adjustments for Facebook modal */
@media (max-width: 768px) {
    #rpr-facebook-metadata-modal-media .rpr-modal-content {
        padding: 1.5rem 1rem;
        margin: 1rem;
    }
    
    .rpr-fb-preview-card {
        flex-direction: column;
        text-align: center;
    }
    
    .rpr-fb-preview-media {
        width: 100%;
        height: 60px;
        align-self: center;
    }
    
    .rpr-fb-modal-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .rpr-fb-share-btn,
    .rpr-fb-cancel-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #rpr-facebook-metadata-modal-media .rpr-modal-content {
        width: 95%;
        padding: 15px;
    }

    #rpr-facebook-metadata-modal-media h2 {
        font-size: 1.1rem;
    }

    .rpr-fb-form-group input,
    .rpr-fb-form-group textarea {
        font-size: 14px;
    }
}

 