/* ============================
   Matching-Partner Backend CSS
   Same design language as verkuppelt.at
   ============================ */

:root {
    --red-primary: #D62828;
    --red-dark: #B71C1C;
    --red-light: #FFEBEE;
    --bg-light: #FFF8F5;
    --bg-white: #FFFFFF;
    --bg-sidebar: #1A1A2E;
    --text-primary: #2D2D2D;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --border-color: #E5E7EB;
    --border-light: #F3F4F6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --success: #16A34A;
    --success-light: #F0FDF4;
    --danger: #DC2626;
    --danger-light: #FEF2F2;
    --info: #2563EB;
    --info-light: #EFF6FF;
    --warning: #D97706;
    --warning-light: #FFFBEB;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: var(--red-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================
   Login Page
   ============================ */

.mp-login-body {
    background: linear-gradient(135deg, #FFF8F5 0%, #FFE8E0 50%, #FFF0EB 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mp-login-page {
    width: 100%;
    max-width: 440px;
}

.mp-login-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    border: 1px solid var(--border-light);
}

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

.mp-login-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
}

.mp-login-header h1 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.mp-login-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.mp-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mp-login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.mp-login-footer p {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.mp-login-link {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============================
   App Layout
   ============================ */

.mp-app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.mp-sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.mp-sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mp-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.mp-logo:hover {
    text-decoration: none;
}

.mp-logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.mp-logo-text {
    display: flex;
    flex-direction: column;
}

.mp-logo-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
}

.mp-logo-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation */
.mp-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mp-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mp-nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
}

.mp-nav-item.active {
    background: var(--red-primary);
    color: #fff;
}

.mp-nav-item i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.mp-sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.mp-nav-logout {
    color: rgba(255,255,255,0.5);
}

.mp-nav-logout:hover {
    color: #fff;
    background: rgba(220, 38, 38, 0.3);
}

/* Main content area */
.mp-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.mp-topbar {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.mp-hamburger {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
}

.mp-topbar-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
}

.mp-content {
    flex: 1;
    padding: 32px;
    max-width: 960px;
    width: 100%;
}

/* Overlay for mobile sidebar */
.mp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 90;
}

.mp-overlay.active {
    display: block;
}

/* ============================
   Flash Messages
   ============================ */

.mp-flashes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.mp-flash {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
}

.mp-flash i {
    font-size: 18px;
    flex-shrink: 0;
}

.mp-flash-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid #BBF7D0;
}

.mp-flash-error {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid #FECACA;
}

.mp-flash-info {
    background: var(--info-light);
    color: var(--info);
    border: 1px solid #BFDBFE;
}

/* ============================
   Forms
   ============================ */

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

.mp-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.mp-form-group label i {
    font-size: 15px;
    margin-right: 4px;
    color: var(--text-secondary);
}

.mp-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mp-input:focus {
    outline: none;
    border-color: var(--red-primary);
    box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.1);
}

.mp-textarea {
    resize: vertical;
    min-height: 80px;
}

.mp-form-row {
    display: flex;
    gap: 16px;
}

.mp-form-half {
    flex: 1;
}

.mp-form-third {
    flex: 0 0 33%;
}

.mp-form-twothirds {
    flex: 1;
}

.mp-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

.mp-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.mp-file-visible {
    padding: 8px;
}

.mp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
}

.mp-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--red-primary);
}

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

.mp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

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

.mp-btn-primary {
    background: var(--red-primary);
    color: #fff;
}

.mp-btn-primary:hover {
    background: var(--red-dark);
    color: #fff;
}

.mp-btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.mp-btn-outline:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.mp-btn-danger-outline {
    background: transparent;
    color: var(--danger);
    border: 1px solid #FECACA;
}

.mp-btn-danger-outline:hover {
    background: var(--danger-light);
}

.mp-btn-block {
    width: 100%;
}

.mp-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* ============================
   Cards
   ============================ */

.mp-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 28px;
    margin-bottom: 24px;
}

.mp-card h2 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mp-card h2 i {
    color: var(--red-primary);
}

.mp-card h3 {
    font-size: 15px;
    margin: 20px 0 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================
   Dashboard
   ============================ */

.mp-dashboard {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mp-welcome h1 {
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mp-welcome h1 i {
    color: var(--red-primary);
}

.mp-welcome p {
    color: var(--text-secondary);
    margin-top: 6px;
}

.mp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.mp-stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.mp-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--red-light);
    color: var(--red-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.mp-stat-body {
    flex: 1;
    min-width: 0;
}

.mp-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    display: block;
}

.mp-stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.mp-progress {
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.mp-progress-bar {
    height: 100%;
    background: var(--red-primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.mp-quick-actions h2 {
    font-size: 18px;
    margin-bottom: 12px;
}

.mp-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.mp-action-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mp-action-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--red-primary);
    color: var(--red-primary);
    text-decoration: none;
    transform: translateY(-2px);
}

.mp-action-card i {
    font-size: 28px;
    color: var(--red-primary);
}

.mp-action-card span {
    font-weight: 600;
    font-size: 14px;
}

.mp-tip {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: #FEF9E7;
    border: 1px solid #F5E6A3;
    border-radius: var(--radius-md);
    font-size: 14px;
}

.mp-tip > i {
    font-size: 20px;
    color: #D97706;
    flex-shrink: 0;
    margin-top: 2px;
}

.mp-tip strong {
    display: block;
    margin-bottom: 2px;
}

.mp-tip a {
    font-weight: 600;
}

/* ============================
   Profile
   ============================ */

.mp-profile h1 {
    font-size: 22px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mp-profile h1 i {
    color: var(--red-primary);
}

.mp-logo-section {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 16px;
}

.mp-logo-preview {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--border-light);
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}

.mp-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    gap: 4px;
}

.mp-logo-placeholder i {
    font-size: 36px;
}

.mp-logo-placeholder span {
    font-size: 12px;
}

.mp-logo-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mp-crop-area {
    margin: 16px 0;
    text-align: center;
}

.mp-crop-area canvas {
    max-width: 100%;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    cursor: crosshair;
}

.mp-crop-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

/* ============================
   Events
   ============================ */

.mp-events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.mp-events-header h1 {
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mp-events-header h1 i {
    color: var(--red-primary);
}

.mp-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.mp-empty i {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.mp-empty h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.mp-empty p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.mp-events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mp-event-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.mp-event-card:hover {
    box-shadow: var(--shadow-md);
}

.mp-event-past {
    opacity: 0.65;
}

.mp-event-image {
    width: 180px;
    flex-shrink: 0;
}

.mp-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-event-body {
    flex: 1;
    padding: 20px;
    min-width: 0;
}

.mp-event-date {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mp-event-date i {
    color: var(--red-primary);
}

.mp-event-badge-past {
    background: var(--border-light);
    color: var(--text-light);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.mp-event-body h3 {
    font-size: 17px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.mp-event-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.mp-event-location {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.mp-event-location i {
    color: var(--red-primary);
}

.mp-event-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    justify-content: center;
    align-items: flex-end;
    flex-shrink: 0;
}

/* Event Form */
.mp-event-form-page h1 {
    font-size: 22px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mp-event-form-page h1 i {
    color: var(--red-primary);
}

.mp-event-current-image {
    margin-bottom: 12px;
}

.mp-event-current-image img {
    max-width: 300px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

/* ============================
   Event Attendees
   ============================ */

.mp-event-attendees {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.mp-event-attendees i {
    color: var(--red-primary);
}

.mp-attendees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 16px;
}

.mp-attendee {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.mp-attendee-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.mp-attendee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-attendee-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.mp-gender-maennlich {
    background: #DBEAFE;
    color: #3B82F6;
}

.mp-gender-weiblich {
    background: #FCE7F3;
    color: #EC4899;
}

.mp-gender-divers {
    background: #F3E8FF;
    color: #8B5CF6;
}

.mp-attendee-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-empty-text {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================
   Mobile Responsive
   ============================ */

@media (max-width: 768px) {
    .mp-sidebar {
        transform: translateX(-100%);
    }

    .mp-sidebar.open {
        transform: translateX(0);
    }

    .mp-main {
        margin-left: 0;
    }

    .mp-topbar {
        display: flex;
    }

    .mp-content {
        padding: 20px 16px;
    }

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

    .mp-form-third, .mp-form-twothirds {
        flex: 1;
    }

    .mp-login-card {
        padding: 28px 20px;
    }

    .mp-event-card {
        flex-direction: column;
    }

    .mp-event-image {
        width: 100%;
        height: 160px;
    }

    .mp-event-actions {
        flex-direction: row;
        padding: 12px 20px 20px;
    }

    .mp-stats-grid {
        grid-template-columns: 1fr;
    }

    .mp-logo-section {
        flex-direction: column;
        align-items: center;
    }

    .mp-events-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ================================
   Gallery
   ================================ */

.mp-gallery-page {
    max-width: 1200px;
}

.mp-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.mp-gallery-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.mp-gallery-header h1 i {
    color: var(--red-primary, #D62828);
    font-size: 1.6rem;
}

.mp-photo-counter {
    font-size: 0.9rem;
    color: #666;
    background: #f0f0f0;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
}

/* Upload Drop Zone */
.mp-upload-zone {
    border: 2px dashed #ccc;
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    margin-bottom: 24px;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.mp-upload-zone.drag-over {
    border-color: var(--red-primary, #D62828);
    background: #fef2f2;
}

.mp-upload-content i {
    font-size: 3rem;
    color: #bbb;
    display: block;
    margin-bottom: 12px;
}

.mp-upload-zone.drag-over .mp-upload-content i {
    color: var(--red-primary, #D62828);
}

.mp-upload-content p {
    font-size: 1rem;
    color: #555;
    margin: 0 0 8px;
}

.mp-upload-browse {
    background: none;
    border: none;
    color: var(--red-primary, #D62828);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    font-size: 1rem;
    padding: 0;
}

.mp-upload-hint {
    font-size: 0.82rem;
    color: #999;
}

.mp-upload-progress {
    margin-top: 16px;
    background: #f0f0f0;
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
    position: relative;
}

.mp-upload-progress-bar {
    height: 100%;
    background: var(--red-primary, #D62828);
    border-radius: 8px;
    width: 0%;
    transition: width 0.3s;
}

.mp-upload-progress-text {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666;
}

/* Gallery Grid */
.mp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.mp-gallery-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.mp-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.mp-gallery-item.dragging {
    opacity: 0.4;
    border-color: var(--red-primary, #D62828);
}

.mp-gallery-item.drag-target {
    border-color: var(--red-primary, #D62828);
    border-style: dashed;
}

.mp-gallery-thumb {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.mp-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.mp-gallery-thumb:hover img {
    transform: scale(1.05);
}

.mp-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.mp-gallery-thumb:hover .mp-gallery-overlay {
    opacity: 1;
}

.mp-gallery-view-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    color: #333;
    transition: background 0.2s;
}

.mp-gallery-view-btn:hover {
    background: #fff;
}

.mp-gallery-info {
    padding: 12px 14px;
}

.mp-gallery-caption {
    font-size: 0.88rem;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

.mp-gallery-meta {
    margin-bottom: 8px;
}

.mp-visibility-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.mp-visibility-public {
    background: #e8f5e9;
    color: #2e7d32;
}

.mp-visibility-top_members {
    background: #fff3e0;
    color: #e65100;
}

.mp-gallery-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mp-btn-icon {
    background: none;
    border: 1px solid #e0e0e0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    font-size: 1rem;
    transition: all 0.15s;
}

.mp-btn-icon:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #ccc;
}

.mp-delete-photo-btn:hover {
    background: #fef2f2;
    color: var(--red-primary, #D62828);
    border-color: #f5c6c6;
}

.mp-drag-handle {
    margin-left: auto;
    cursor: grab;
    color: #bbb;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.mp-drag-handle:active {
    cursor: grabbing;
}

/* Help Tip (Gallery page) */
.mp-help-tip {
    display: flex;
    gap: 12px;
    background: #FEF9E7;
    border: 1px solid #F5E6A3;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
}

.mp-help-tip > i {
    font-size: 1.4rem;
    color: #F0B429;
    flex-shrink: 0;
    margin-top: 2px;
}

.mp-help-tip strong {
    color: #333;
}

/* Empty State */
.mp-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.mp-empty-state i {
    font-size: 4rem;
    margin-bottom: 16px;
    display: block;
    color: #ddd;
}

.mp-empty-state h3 {
    font-family: 'Poppins', sans-serif;
    color: #666;
    margin: 0 0 8px;
}

.mp-empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* Modal */
.mp-modal-overlay[hidden],
.mp-lightbox[hidden] {
    display: none !important;
}

.mp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: mpFadeIn 0.2s ease;
}

@keyframes mpFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mp-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: mpSlideUp 0.25s ease;
}

@keyframes mpSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.mp-modal-sm {
    max-width: 400px;
}

.mp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #eee;
}

.mp-modal-header h3 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mp-modal-header h3 i {
    color: var(--red-primary, #D62828);
}

.mp-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

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

.mp-modal-body {
    padding: 20px 24px;
}

.mp-modal-body p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.mp-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 24px;
    border-top: 1px solid #eee;
}

.mp-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.mp-btn-secondary:hover {
    background: #e0e0e0;
}

.mp-btn-danger {
    background: var(--red-primary, #D62828);
    color: #fff;
}

.mp-btn-danger:hover {
    background: #b71c1c;
}

/* Lightbox */
.mp-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mpFadeIn 0.2s ease;
}

.mp-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.mp-lightbox-close:hover {
    opacity: 1;
}

.mp-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2001;
    transition: background 0.2s;
}

.mp-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mp-lightbox-prev {
    left: 16px;
}

.mp-lightbox-next {
    right: 16px;
}

.mp-lightbox-image-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mp-lightbox-image-wrap img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.mp-lightbox-caption {
    color: #fff;
    text-align: center;
    margin-top: 12px;
    font-size: 0.95rem;
    opacity: 0.85;
}

.mp-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Gallery responsive */
@media (max-width: 768px) {
    .mp-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .mp-upload-zone {
        padding: 28px 16px;
    }

    .mp-upload-content i {
        font-size: 2.2rem;
    }

    .mp-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .mp-lightbox-prev {
        left: 8px;
    }

    .mp-lightbox-next {
        right: 8px;
    }

    .mp-gallery-info {
        padding: 10px 12px;
    }

    .mp-gallery-caption {
        font-size: 0.82rem;
    }
}

/* Toast Notifications */
.mp-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}

.mp-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.mp-toast-success {
    background: #2e7d32;
}

.mp-toast-error {
    background: var(--red-primary, #D62828);
}
