/* Organizer Portal — Desktop Layout */
.org-body {
    display: flex;
    min-height: 100vh;
    background: #f5f5f5;
    padding: 0;
    margin: 0;
}

.org-sidebar {
    width: 240px;
    min-height: 100vh;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    transition: width 0.25s ease;
}

.org-sidebar.collapsed {
    width: 56px;
    overflow: hidden;
}

.org-sidebar.collapsed .org-sidebar-header,
.org-sidebar.collapsed .org-nav-label {
    display: none;
}

.org-sidebar.collapsed .org-nav-item {
    justify-content: center;
    padding: 12px 0;
}

.org-sidebar.collapsed .org-collapse-btn svg {
    transform: rotate(180deg);
}

.org-collapse-btn {
    border-top: 1px solid #333;
}

.org-sidebar-header {
    padding: 24px 20px 16px;
    border-bottom: 1px solid #333;
}

.org-logo {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: block;
}

.org-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin-top: 4px;
    display: block;
}

.org-nav {
    flex: 1;
    padding: 12px 0;
}

.org-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.org-nav-item:hover {
    background: #2a2a2a;
}

.org-nav-item.active {
    background: #333;
    color: #fff;
    font-weight: 600;
}

.org-sidebar-footer {
    padding: 12px 0;
    border-top: 1px solid #333;
}

.org-main {
    margin-left: 240px;
    flex: 1;
    padding: 32px 40px;
    max-width: 100%;
    transition: margin-left 0.25s ease;
}

.org-main.collapsed {
    margin-left: 56px;
}

/* Page header */
.org-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.org-page-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* Cards */
.org-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid #e5e5e5;
}

.org-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.org-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.org-card-meta {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

/* Status badges */
.org-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.org-status--draft { background: #f0f0f0; color: #666; }
.org-status--published { background: #e8f5e9; color: #2e7d32; }
.org-status--completed { background: #e3f2fd; color: #1565c0; }
.org-status--cancelled { background: #fce4ec; color: #c62828; }

/* Card footer */
.org-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 12px;
}

/* Stats row */
.org-stats {
    display: flex;
    gap: 24px;
}

.org-stat {
    text-align: center;
}

.org-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.org-stat-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Button row */
.org-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Tabs */
.org-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 24px;
}

.org-tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    outline: none;
    transition: color 0.15s;
}

.org-tab:hover {
    color: #555;
}

.org-tab.active {
    color: var(--color-primary, #2563eb);
    border-bottom-color: var(--color-primary, #2563eb);
    font-weight: 600;
}

/* Table */
.org-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.org-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    border-bottom: 1px solid #e5e5e5;
    font-weight: 600;
}

.org-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.org-table tr:last-child td {
    border-bottom: none;
}

/* Form sections */
.org-form-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e5e5e5;
}

.org-form-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
    text-align: center;
}

.org-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.org-form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.org-form-row-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
}

/* Logo preview */
.org-logo-preview {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 14px;
}

.org-logo-preview img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

/* Sponsor logo */
.org-sponsor-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    background: #f5f5f5;
}

/* Empty state */
.org-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 14px;
}

/* Schedule Builder */
.sched-wrap {
    display: flex;
    gap: 16px;
    height: calc(100vh - 200px);
    min-height: 500px;
}

.sched-outer {
    flex: 1;
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.sched-time-col {
    min-width: 60px;
    flex-shrink: 0;
    border-right: 1px solid #e0e0e0;
    background: #f8f8f8;
    display: flex;
    flex-direction: column;
}

.sched-time-clip {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.sched-time-body {
    will-change: transform;
}

.sched-time-col .sched-day-header {
    background: #f8f8f8;
    flex-shrink: 0;
}

.sched-grid {
    flex: 1;
    display: flex;
    overflow-x: auto;
    overflow-y: auto;
    background: #fff;
    min-width: 0;
}

.sched-grid-inner {
    display: flex;
    flex: 1;
    min-width: 100%;
}

.sched-day-col {
    flex: 1 1 0%;
    min-width: 140px;
    border-right: 1px solid #eee;
    position: relative;
}

.sched-day-col:last-child {
    border-right: none;
}

.sched-day-header {
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 4px;
    background: #f5f7fa;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.sched-focus-btn {
    font-size: 10px;
    padding: 1px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    color: #666;
    cursor: pointer;
    line-height: 1.4;
}

.sched-focus-btn:hover {
    background: #e8e8e8;
    color: #333;
}

.sched-slot {
    height: 40px;
    border-bottom: 1px solid #eee;
    position: relative;
    box-sizing: border-box;
}

.sched-slot.sched-half-hour {
    border-bottom: 1px solid #ccc;
}

.sched-slot.drag-over {
    background: #e8f0fe;
}

.sched-time-label {
    height: 40px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0 8px;
    font-size: 11px;
    color: #888;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
    line-height: 1;
}

.sched-time-label.sched-half-hour {
    border-bottom: 1px solid #ccc;
}

.sched-block {
    position: absolute;
    left: 0;
    width: 85%;
    box-sizing: border-box;
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 11px;
    line-height: 1.3;
    overflow: hidden;
    cursor: grab;
    z-index: 1;
    user-select: none;
    -webkit-user-select: none;
    background: #4a7fb5;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.4);
}

.sched-type-clinic { background: #4a7fb5; }
.sched-type-meetup { background: #7b6b9e; }
.sched-type-shopping { background: #5a9a6e; }
.sched-type-try_gear { background: #c4a84d; }
.sched-type-rental { background: #c4834d; }
.sched-type-presentation { background: #b05656; }
.sched-type-climbing { background: #4a4a4a; color: #fff; }
.sched-type-ceremony { background: #8b6f4e; }
.sched-type-other { background: #a0a0a0; }

.sched-block .sched-block-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sched-block .sched-block-meta {
    font-size: 10px;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sched-block .sched-block-del {
    position: absolute;
    top: 2px;
    right: 4px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    line-height: 1;
}

.sched-block .sched-block-del:hover {
    color: #fff;
}

.sched-popover {
    position: absolute;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 12px 14px;
    min-width: 180px;
    max-width: 260px;
    font-size: 13px;
    line-height: 1.4;
}

.sched-popover-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.sched-popover-close:hover {
    color: #333;
}

.sched-popover-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    color: #222;
}

.sched-popover-row {
    margin-bottom: 2px;
    color: #444;
}

.sched-popover-desc {
    margin-top: 6px;
    font-size: 12px;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 6px;
}

.sched-popover-remove {
    display: block;
    margin-top: 8px;
    padding: 3px 10px;
    font-size: 11px;
    border: 1px solid #d44;
    border-radius: 4px;
    background: #fff;
    color: #d44;
    cursor: pointer;
}

.sched-popover-remove:hover {
    background: #d44;
    color: #fff;
}

.sched-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow-y: auto;
    padding: 12px;
}

.sched-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sched-sidebar-title {
    font-weight: 600;
    font-size: 13px;
    color: #555;
}

.sched-add-event-btn {
    background: var(--color-primary, #2563eb);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.sched-add-event-btn:hover {
    opacity: 0.85;
}

.sched-clinic-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
    cursor: grab;
    font-size: 12px;
    transition: box-shadow 0.15s;
    user-select: none;
    -webkit-user-select: none;
    border-left: 3px solid #ddd;
}

.sched-clinic-card.scheduled { border-left: 3px solid #4a7fb5; }
.sched-clinic-card.sched-card-clinic { border-left-color: #4a7fb5; }
.sched-clinic-card.sched-card-meetup { border-left-color: #7b6b9e; }
.sched-clinic-card.sched-card-shopping { border-left-color: #5a9a6e; }
.sched-clinic-card.sched-card-try_gear { border-left-color: #c4a84d; }
.sched-clinic-card.sched-card-rental { border-left-color: #c4834d; }
.sched-clinic-card.sched-card-presentation { border-left-color: #b05656; }
.sched-clinic-card.sched-card-climbing { border-left-color: #4a4a4a; }
.sched-clinic-card.sched-card-ceremony { border-left-color: #8b6f4e; }
.sched-clinic-card.sched-card-other { border-left-color: #a0a0a0; }

.sched-clinic-card * {
    pointer-events: none;
}

.sched-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
}

.sched-card-edit {
    pointer-events: auto;
    background: var(--color-primary, #2563eb);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1.4;
    flex-shrink: 0;
    font-weight: 500;
}

.sched-card-edit:hover {
    background: #1d4ed8;
}

.sched-clinic-card:active {
    cursor: grabbing;
}

.sched-clinic-card:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.sched-clinic-card .sched-card-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.sched-clinic-card .sched-card-meta {
    color: #888;
    font-size: 11px;
}

/* Buttons — inherit from style.css but override for desktop sizing */
.org-main .btn {
    font-size: 13px;
    padding: 8px 16px;
}

.org-main .btn-lg {
    font-size: 15px;
    padding: 12px 24px;
}

/* Photo Grid */
.org-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.org-photo-card {
    position: relative;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    cursor: grab;
    transition: transform 0.15s, box-shadow 0.15s;
}

.org-photo-card:active { cursor: grabbing; }

.org-photo-card.dragging {
    opacity: 0.4;
    transform: scale(0.95);
}

.org-photo-card.drag-over {
    border-color: #2980b9;
    box-shadow: 0 0 0 2px rgba(41, 128, 185, 0.3);
}

.org-photo-num {
    text-align: center;
    padding: 4px 0;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    background: #f9f9f9;
}

/* Phone Preview Frame */
.preview-phone {
    width: 375px;
    min-height: 700px;
    background: #f5f5f5;
    border-radius: 40px;
    border: 6px solid #222;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.preview-phone-notch {
    width: 120px;
    height: 28px;
    background: #222;
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
}

.preview-phone-screen {
    padding: 12px 16px 32px;
    overflow-y: auto;
    max-height: 750px;
    font-size: 14px;
}
