/* QR Snapshots Frontend Styles */

/* Reset and Base Styles */
.qrs-dashboard-page,
.qrs-gallery-page {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
}

.qrs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.qrs-btn {
    display: inline-block;
    padding: 10px 16px;
    margin: 4px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.qrs-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.qrs-btn-primary {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: #fff;
    border: 1px solid #005a87;
}

.qrs-btn-primary:hover {
    background: linear-gradient(135deg, #005a87 0%, #004066 100%);
    color: #fff;
}

.qrs-btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.qrs-btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
}

.qrs-btn-music {
    background: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
    color: #fff;
    border: 1px solid #1db954;
}

.qrs-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.qrs-btn .dashicons {
    margin-right: 6px;
    font-size: 16px;
    line-height: 1;
}

/* Dashboard Styles */
.qrs-dashboard-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.qrs-dashboard-header {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 16px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.qrs-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.qrs-logo a {
    font-size: 24px;
    font-weight: bold;
    color: #007cba;
    text-decoration: none;
}

.qrs-dashboard-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.qrs-dashboard-nav a {
    color: #495057;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.qrs-dashboard-nav a:hover {
    background: #e9ecef;
}

.qrs-user-welcome {
    color: #495057;
    font-weight: 500;
}

.qrs-dashboard-main {
    padding: 30px 0;
}

.qrs-dashboard-notifications {
    margin-bottom: 30px;
}

.qrs-notification {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.qrs-notification-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.qrs-notification-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.qrs-dashboard-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
}

.qrs-dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qrs-user-info-card,
.qrs-quick-actions,
.qrs-membership-progress {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qrs-user-info-card h3,
.qrs-quick-actions h3,
.qrs-membership-progress h3 {
    margin: 0 0 16px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.qrs-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.qrs-detail-row:last-child {
    border-bottom: none;
}

.qrs-detail-row label {
    font-weight: 500;
    color: #6c757d;
}

.qrs-membership-level {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.qrs-status-active {
    color: #28a745;
    font-weight: 600;
}

.qrs-status-expired {
    color: #dc3545;
    font-weight: 600;
}

.qrs-membership-limits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qrs-membership-limits li {
    padding: 6px 0;
    color: #6c757d;
}

.qrs-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qrs-progress-item {
    margin-bottom: 16px;
}

.qrs-progress-item label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
}

.qrs-progress-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 4px;
}

.qrs-progress-fill {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.qrs-progress-text {
    font-size: 12px;
    color: #6c757d;
}

/* Gallery Styles */
.qrs-gallery-section h3 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 24px;
    font-weight: 600;
}

.qrs-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.qrs-gallery-grid {
    display: grid;
    gap: 24px;
}

.qrs-gallery-grid.qrs-galleries {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.qrs-no-galleries {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.qrs-gallery-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qrs-gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.qrs-gallery-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.qrs-gallery-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    border: none;
    background: none;
    padding: 4px;
    border-radius: 4px;
    min-width: 0;
    flex: 1;
}

.qrs-gallery-name:focus {
    outline: 2px solid #007cba;
    background: #f8f9fa;
}

.qrs-gallery-actions {
    display: flex;
    gap: 4px;
}

.qrs-gallery-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.qrs-stat {
    text-align: center;
}

.qrs-stat label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
}

.qrs-stat span {
    font-weight: 600;
    color: #495057;
}

.qrs-storage-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.qrs-storage-progress {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.qrs-gallery-description {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.qrs-gallery-card-footer {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Public Gallery Styles */
.qrs-gallery-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.qrs-gallery-header {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.qrs-gallery-info {
    text-align: center;
    flex: 1;
}

.qrs-gallery-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #495057;
}

.qrs-gallery-owner {
    color: #6c757d;
    margin: 0 0 12px 0;
    font-style: italic;
}

.qrs-gallery-description {
    color: #495057;
    max-width: 600px;
    margin: 0 auto;
}

.qrs-gallery-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.qrs-gallery-meta {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 12px 0;
}

.qrs-meta-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #6c757d;
}

.qrs-gallery-main {
    padding: 40px 0;
}

.qrs-empty-gallery {
    text-align: center;
    padding: 80px 20px;
}

.qrs-empty-icon {
    font-size: 64px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.qrs-empty-content h2 {
    color: #6c757d;
    margin-bottom: 12px;
}

.qrs-empty-content p {
    color: #adb5bd;
    margin-bottom: 24px;
}

/* Gallery Layout Styles */
.qrs-gallery-grid.qrs-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.qrs-gallery-grid.qrs-layout-justified {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.qrs-gallery-grid.qrs-layout-masonry {
    column-count: 4;
    column-gap: 20px;
}

.qrs-gallery-grid.qrs-layout-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: 200px;
    gap: 10px;
}

.qrs-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.qrs-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.qrs-layout-masonry .qrs-gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
}

.qrs-gallery-image,
.qrs-gallery-video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.qrs-layout-mosaic .qrs-gallery-image,
.qrs-layout-mosaic .qrs-gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qrs-gallery-item:hover .qrs-gallery-image,
.qrs-gallery-item:hover .qrs-gallery-video {
    transform: scale(1.05);
}

.qrs-gallery-file {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f8f9fa;
    min-height: 200px;
}

.qrs-gallery-file .dashicons {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 12px;
}

.qrs-file-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 16px;
}

.qrs-gallery-item:hover .qrs-file-overlay {
    opacity: 1;
}

.qrs-file-info {
    color: #fff;
    margin-bottom: 12px;
}

.qrs-file-name {
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
    font-size: 14px;
}

.qrs-upload-date {
    font-size: 12px;
    opacity: 0.8;
}

.qrs-file-actions {
    display: flex;
    gap: 8px;
}

.qrs-file-action {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.qrs-file-action:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

/* Modal Styles */
.qrs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.qrs-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

.qrs-wide-modal {
    max-width: 900px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qrs-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.qrs-modal-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #495057;
}

.qrs-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrs-modal-close:hover {
    color: #495057;
}

/* Slideshow Modal */
.qrs-slideshow-modal {
    background: rgba(0,0,0,0.95);
}

.qrs-slideshow-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: none;
    max-height: none;
    background: none;
    box-shadow: none;
}

.qrs-slideshow-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.8);
}

.qrs-slideshow-header h3 {
    color: #fff;
    margin: 0;
    font-size: 20px;
}

.qrs-slideshow-header .qrs-modal-close {
    color: #fff;
    font-size: 28px;
}

.qrs-slideshow-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.qrs-slides-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrs-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrs-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.qrs-slide.active {
    opacity: 1;
}

.qrs-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.qrs-slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.qrs-slide-btn {
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    pointer-events: auto;
}

.qrs-slide-btn:hover {
    background: rgba(0,0,0,0.8);
}

.qrs-slideshow-controls {
    padding: 20px;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.qrs-control-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.qrs-control-btn:hover {
    background: rgba(255,255,255,0.3);
}

.qrs-slide-progress {
    color: #fff;
    font-size: 14px;
}

/* Form Styles */
.qrs-upload-form {
    padding: 24px;
}

.qrs-upload-area {
    margin-bottom: 20px;
}

.qrs-upload-drop-zone {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.qrs-upload-drop-zone:hover,
.qrs-upload-drop-zone.dragover {
    border-color: #007cba;
    background: #e3f2fd;
}

.qrs-upload-icon .dashicons {
    font-size: 48px;
    color: #007cba;
    margin-bottom: 16px;
}

.qrs-upload-text {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.qrs-upload-help {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.qrs-file-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.qrs-file-list h4 {
    margin: 0 0 12px 0;
    color: #495057;
}

.qrs-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.qrs-file-item:last-child {
    border-bottom: none;
}

.qrs-form-row {
    margin-bottom: 16px;
}

.qrs-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
}

.qrs-form-row input,
.qrs-form-row textarea,
.qrs-form-row select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.qrs-form-row input:focus,
.qrs-form-row textarea:focus,
.qrs-form-row select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0,124,186,0.1);
}

.qrs-upload-progress {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.qrs-progress-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.qrs-progress-text {
    text-align: center;
    font-weight: 600;
    color: #495057;
}

.qrs-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid #dee2e6;
}

/* Guestbook Styles */
.qrs-guestbook {
    padding: 24px;
}

.qrs-guestbook-form {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

.qrs-guestbook-form h4 {
    margin: 0 0 16px 0;
    color: #495057;
}

.qrs-guestbook-entries h4 {
    margin: 0 0 16px 0;
    color: #495057;
}

.qrs-no-entries {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
}

.qrs-entries-list {
    max-height: 400px;
    overflow-y: auto;
}

.qrs-guestbook-entry {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.qrs-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.qrs-entry-name {
    font-weight: 600;
    color: #495057;
}

.qrs-entry-date {
    font-size: 12px;
    color: #6c757d;
}

.qrs-entry-message {
    color: #495057;
    line-height: 1.5;
}

/* Share Modal Styles */
.qrs-share-content {
    padding: 24px;
}

.qrs-share-url {
    margin-bottom: 24px;
}

.qrs-share-url label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.qrs-share-url input {
    width: calc(100% - 80px);
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
}

.qrs-copy-url {
    width: 80px;
    border-radius: 0 6px 6px 0;
    border-left: none;
}

.qrs-share-buttons h5 {
    margin: 0 0 12px 0;
    color: #495057;
}

.qrs-social-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.qrs-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.qrs-share-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.qrs-facebook {
    background: #1877f2;
    color: #fff;
}

.qrs-twitter {
    background: #1da1f2;
    color: #fff;
}

.qrs-whatsapp {
    background: #25d366;
    color: #fff;
}

.qrs-email {
    background: #6c757d;
    color: #fff;
}

/* QR Code Modal */
.qrs-qr-modal-content {
    max-width: 400px;
}

.qrs-qr-content {
    padding: 24px;
    text-align: center;
}

.qrs-qr-image {
    margin-bottom: 20px;
}

.qrs-qr-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.qrs-qr-actions {
    margin-bottom: 16px;
}

.qrs-qr-help {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* Footer Styles */
.qrs-dashboard-footer,
.qrs-gallery-footer {
    background: #fff;
    border-top: 1px solid #dee2e6;
    padding: 20px 0;
    margin-top: 40px;
}

.qrs-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.qrs-footer-links {
    display: flex;
    gap: 20px;
}

.qrs-footer-links a {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
}

.qrs-footer-links a:hover {
    color: #007cba;
}

.qrs-footer-text {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

.qrs-powered-by a {
    color: #007cba;
    text-decoration: none;
}

/* Load More Styles */
.qrs-load-more-container {
    text-align: center;
    margin-top: 40px;
}

/* Quick Actions */
.qrs-qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.qrs-qr-item {
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
}

.qrs-qr-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 12px;
}

.qrs-qr-item h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #495057;
}

.qrs-qr-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.qrs-gallery-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px;
}

.qrs-gallery-option {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.qrs-gallery-option:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.qrs-gallery-option h4 {
    margin: 0 0 8px 0;
    color: #495057;
}

.qrs-gallery-option p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* Export Styles */
.qrs-export-content {
    padding: 24px;
}

.qrs-export-options {
    margin-bottom: 20px;
}

.qrs-export-options label {
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
}

.qrs-export-options input[type="checkbox"] {
    margin-right: 8px;
}

.qrs-export-format {
    margin-bottom: 20px;
}

.qrs-export-format label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.qrs-export-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .qrs-dashboard-grid {
        grid-template-columns: 280px 1fr;
        gap: 20px;
    }
    
    .qrs-gallery-grid.qrs-layout-masonry {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .qrs-container {
        padding: 0 16px;
    }
    
    .qrs-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .qrs-header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .qrs-dashboard-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .qrs-gallery-grid.qrs-galleries {
        grid-template-columns: 1fr;
    }
    
    .qrs-gallery-grid.qrs-layout-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .qrs-gallery-grid.qrs-layout-masonry {
        column-count: 2;
        column-gap: 16px;
    }
    
    .qrs-gallery-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .qrs-meta-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .qrs-modal {
        padding: 16px;
    }
    
    .qrs-modal-content {
        margin: 0;
    }
    
    .qrs-social-buttons {
        grid-template-columns: 1fr;
    }
    
    .qrs-footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .qrs-gallery-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .qrs-gallery-card-footer {
        flex-direction: column;
    }
    
    .qrs-gallery-title {
        font-size: 24px;
    }
    
    .qrs-qr-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .qrs-gallery-selector {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .qrs-gallery-grid.qrs-layout-grid {
        grid-template-columns: 1fr;
    }
    
    .qrs-gallery-grid.qrs-layout-masonry {
        column-count: 1;
    }
    
    .qrs-dashboard-main {
        padding: 20px 0;
    }
    
    .qrs-gallery-main {
        padding: 20px 0;
    }
    
    .qrs-slide-nav {
        padding: 0 10px;
    }
    
    .qrs-slide-btn {
        width: 40px;
        height: 40px;
    }
    
    .qrs-slideshow-controls {
        padding: 16px;
        flex-wrap: wrap;
    }
    
    .qrs-gallery-card {
        padding: 16px;
    }
    
    .qrs-user-info-card,
    .qrs-quick-actions,
    .qrs-membership-progress {
        padding: 16px;
    }
}

/* Animation Classes */
.qrs-fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.qrs-slide-up {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.qrs-loading {
    position: relative;
}

.qrs-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Accessibility */
.qrs-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;
}

/* Focus States */
.qrs-btn:focus,
.qrs-gallery-item:focus,
.qrs-file-action:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .qrs-modal,
    .qrs-btn,
    .qrs-file-actions,
    .qrs-gallery-actions {
        display: none !important;
    }
    
    .qrs-gallery-grid {
        break-inside: avoid;
    }
    
    .qrs-gallery-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}