/* ========================================
   SESSIONS PAGE STYLES
   ======================================== */

/* ========================================
   SESSIONS HERO
   ======================================== */

.sessions-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin: 0 24px;
    padding: 32px 40px;
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.15) 0%, rgba(255, 70, 85, 0.05) 100%);
    border: 1px solid rgba(255, 70, 85, 0.2);
    border-radius: 20px;
}

.sessions-hero__content {
    flex: 1;
}

.sessions-hero__title {
    font-family: 'Dharma Gothic', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
}

.sessions-hero__desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 24px 0;
}

.sessions-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--accent);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sessions-hero__btn:hover {
    background: #e63946;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 70, 85, 0.3);
}

.sessions-hero__btn svg {
    width: 20px;
    height: 20px;
}

.sessions-hero__visual {
    flex-shrink: 0;
}

.sessions-hero__dice {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 70, 85, 0.1);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.sessions-hero__dice svg {
    width: 60px;
    height: 60px;
    color: var(--accent);
    opacity: 0.8;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========================================
   ACTIVE SESSION
   ======================================== */

.active-session {
    margin: 0 24px;
}

.active-session__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.active-session__live {
    font-size: 12px;
    color: #22c55e;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.active-session__title {
    font-family: 'Dharma Gothic', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.active-session__card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 16px;
}

/* Cover */
.active-session__cover {
    position: relative;
    width: 140px;
    min-width: 140px;
    align-self: stretch;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #22c55e 0%, #166534 100%);
    flex-shrink: 0;
}

.active-session__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.active-session__cover img.loaded {
    display: block;
}

.active-session__cover-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.active-session__cover-fallback svg {
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.3);
}

.active-session__cover img.loaded + .active-session__cover-fallback {
    display: none;
}

.active-session__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.active-session__name-link {
    text-decoration: none;
    display: block;
}

.active-session__name-link:hover .active-session__name {
    color: #22c55e;
}

.active-session__name {
    font-family: 'Dharma Gothic', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.active-session__meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.active-session__timer {
    text-align: center;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    min-width: 160px;
}

.active-session__time {
    display: block;
    font-family: 'Dharma Gothic', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #22c55e;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.active-session__label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* GM Actions */
.active-session__gm-actions {
    display: flex;
    gap: 8px;
}

/* Paused State */
.active-session--paused .active-session__card {
    border-color: rgba(249, 115, 22, 0.3);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(249, 115, 22, 0.05) 100%);
}

.active-session--paused .active-session__time {
    color: #F97316;
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

.active-session--paused .active-session__cover {
    background: linear-gradient(135deg, #F97316 0%, #9a3412 100%);
}

.active-session--paused .active-session__name-link:hover .active-session__name {
    color: #F97316;
}

.active-session__live--paused {
    color: #F97316 !important;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.active-session__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.active-session__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.active-session__btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.active-session__btn--primary {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

.active-session__btn--primary:hover {
    background: #16a34a;
}

.active-session__btn--secondary {
    background: rgba(249, 115, 22, 0.2);
    border-color: rgba(249, 115, 22, 0.4);
    color: #F97316;
}

.active-session__btn--secondary:hover {
    background: rgba(249, 115, 22, 0.3);
    border-color: #F97316;
}

.active-session__btn--stop:hover {
    background: rgba(255, 70, 85, 0.2);
    border-color: var(--accent);
    color: var(--accent);
}

.active-session__btn svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   SESSIONS SECTION
   ======================================== */

.sessions-section {
    margin: 0 24px;
}

.sessions-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sessions-section__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Dharma Gothic', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.sessions-section__title svg {
    width: 24px;
    height: 24px;
    opacity: 0.6;
}

.sessions-section__count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.sessions-section__add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent, #4ade80);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sessions-section__add-btn:hover {
    background: rgba(74, 222, 128, 0.15);
    border-color: var(--accent, #4ade80);
}

.sessions-filter {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

.sessions-filter:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.sessions-filter option {
    background: #1b1b1b;
    color: white;
}

/* ========================================
   SESSIONS LIST
   ======================================== */

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

/* ========================================
   SESSION CARD
   ======================================== */

.session-card {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
    background: #1b1b1b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    min-height: 120px;
}

a.session-card {
    cursor: pointer;
}

.session-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Cover Portrait */
.session-card__cover {
    position: relative;
    width: 80px;
    min-width: 80px;
    min-height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
    align-self: stretch;
}

.session-card__cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.session-card__cover-img.loaded {
    display: block;
}

.session-card__cover-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(76, 29, 149, 0.5) 100%);
}

.session-card__cover-fallback svg {
    width: 44px;
    height: 44px;
    opacity: 0.3;
}

.session-card__cover-img.loaded + .session-card__cover-fallback {
    display: none;
}

/* Ruleset-specific cover gradients */
.session-card__cover--5e {
    background: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%);
}

.session-card__cover--worldsapart {
    background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
}

.session-card__cover--htbah {
    background: linear-gradient(135deg, #059669 0%, #064e3b 100%);
}

.session-card__cover--cyberpunk {
    background: linear-gradient(135deg, #eab308 0%, #854d0e 100%);
}

.session-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 10px 8px;
    background: linear-gradient(135deg, var(--accent) 0%, #cc3844 100%);
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 70, 85, 0.25);
    align-self: stretch;
}

.session-card__day {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.session-card__num {
    font-family: 'Dharma Gothic', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.session-card__month {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.session-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.session-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.session-card__time,
.session-card__duration {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.session-card__title {
    font-family: 'Dharma Gothic', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.session-card__subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    margin: 2px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.session-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.session-card__meta-divider {
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.session-card__desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 4px 0 0 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.session-card__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.session-card__actions--vertical {
    justify-content: flex-start;
    padding-top: 4px;
}

.session-card__btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
}

.session-card__btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.session-card__btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.session-card__btn--primary:hover {
    background: #e63946;
    transform: scale(1.05);
}

.session-card__btn svg {
    width: 18px;
    height: 18px;
}

/* Past Session specific */
.session-card--past {
    align-items: flex-start;
}

.session-card--past .session-card__cover {
    opacity: 0.85;
    filter: grayscale(20%);
}

.session-card__recap {
    margin-top: 4px;
}

.session-card__recap p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.session-card__stats {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.session-card__stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.session-card__stat svg {
    opacity: 0.6;
}

.session-card__stat--crit {
    color: #eab308;
}

.session-card__stat--crit svg {
    color: #eab308;
    opacity: 1;
}

/* ========================================
   EMPTY STATE
   ======================================== */

.sessions-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.sessions-empty svg {
    width: 64px;
    height: 64px;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 16px;
}

.sessions-empty p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 20px 0;
}

.sessions-empty__btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sessions-empty__btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.sessions-empty__hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: -12px;
}

/* ========================================
   LOAD MORE
   ======================================== */

.sessions-load-more {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.sessions-load-more__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sessions-load-more__btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sessions-load-more__btn svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   STATS OVERVIEW
   ======================================== */

.sessions-stats {
    margin: 0 24px;
    padding-bottom: 40px;
}

.sessions-stats__title {
    font-family: 'Dharma Gothic', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0 0 20px 0;
}

.sessions-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sessions-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: #1b1b1b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-align: center;
}

.sessions-stat__value {
    font-family: 'Dharma Gothic', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.sessions-stat__label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   SESSION MODAL
   ======================================== */

.session-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.session-modal.open {
    opacity: 1;
    visibility: visible;
}

.session-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.session-modal__content {
    position: relative;
    width: calc(100% - 48px);
    max-width: 480px;
    background: #1b1b1b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.session-modal.open .session-modal__content {
    transform: translateY(0);
}

.session-modal__content--large {
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
}

.session-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.session-modal__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Dharma Gothic', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.session-modal__title svg {
    flex-shrink: 0;
    color: var(--accent);
}

.session-modal__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
}

.session-modal__close:hover {
    background: rgba(255, 70, 85, 0.2);
    color: var(--accent);
}

.session-modal__close svg {
    width: 18px;
    height: 18px;
}

.session-modal__body {
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.session-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.session-modal__btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.session-modal__btn--secondary {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
}

.session-modal__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.session-modal__btn--primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: white;
}

.session-modal__btn--primary:hover {
    background: #e63946;
}

.session-modal__btn svg {
    width: 16px;
    height: 16px;
}

/* Modal Tabs */
.session-modal__tabs {
    display: flex;
    gap: 4px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.session-modal__tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.session-modal__tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.session-modal__tab--active {
    background: rgba(255, 70, 85, 0.15);
    color: var(--accent);
}

.session-modal__tab svg {
    opacity: 0.7;
}

.session-modal__tab--active svg {
    opacity: 1;
}

/* Tab Content */
.session-modal__tab-content {
    display: none;
}

.session-modal__tab-content--active {
    display: block;
}

/* Ruleset Select */
.ruleset-select {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.ruleset-option input {
    display: none;
}

.ruleset-option__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.ruleset-option__box img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.ruleset-option__box span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.ruleset-option:hover .ruleset-option__box {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.ruleset-option input:checked + .ruleset-option__box {
    background: rgba(255, 70, 85, 0.15);
    border-color: var(--accent);
}

.ruleset-option input:checked + .ruleset-option__box span {
    color: var(--accent);
}

/* Ruleset-specific colors */
.ruleset-option input[value="5e2024"] + .ruleset-option__box {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
}
.ruleset-option input[value="5e2024"]:checked + .ruleset-option__box {
    background: rgba(220, 38, 38, 0.25);
    border-color: #dc2626;
}
.ruleset-option input[value="5e2024"]:checked + .ruleset-option__box span {
    color: #ef4444;
}

.ruleset-option input[value="worldsapart"] + .ruleset-option__box {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}
.ruleset-option input[value="worldsapart"]:checked + .ruleset-option__box {
    background: rgba(139, 92, 246, 0.25);
    border-color: #8b5cf6;
}
.ruleset-option input[value="worldsapart"]:checked + .ruleset-option__box span {
    color: #a78bfa;
}

.ruleset-option input[value="htbah"] + .ruleset-option__box {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}
.ruleset-option input[value="htbah"]:checked + .ruleset-option__box {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
}
.ruleset-option input[value="htbah"]:checked + .ruleset-option__box span {
    color: #34d399;
}

.ruleset-option input[value="cyberpunk"] + .ruleset-option__box {
    background: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.3);
}
.ruleset-option input[value="cyberpunk"]:checked + .ruleset-option__box {
    background: rgba(234, 179, 8, 0.25);
    border-color: #eab308;
}
.ruleset-option input[value="cyberpunk"]:checked + .ruleset-option__box span {
    color: #fbbf24;
}

/* Create Cover Upload */
.create-cover-upload {
    position: relative;
    width: 140px;
}

.create-cover-upload__preview {
    width: 140px;
    height: 210px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s;
}

.create-cover-upload__preview:hover {
    border-color: var(--accent);
    background: rgba(255, 70, 85, 0.05);
}

.create-cover-upload__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.create-cover-upload__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
}

.create-cover-upload__placeholder span {
    font-size: 12px;
}

.create-cover-upload__remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Create Tags Grid */
.create-tags-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.create-tag {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.create-tag input {
    display: none;
}

.create-tag span {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s;
    width: 100%;
    text-align: center;
}

.create-tag:hover span {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.create-tag input:checked + span {
    background: rgba(255, 70, 85, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

/* Custom Tags */
.create-custom-tags {
    margin-top: 12px;
}

.create-custom-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.create-custom-tags__list:empty {
    display: none;
}

.create-custom-tags__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 6px;
    font-size: 12px;
    color: #a78bfa;
}

.create-custom-tags__tag button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    opacity: 0.6;
}

.create-custom-tags__tag button:hover {
    opacity: 1;
}

.create-custom-tags__input {
    display: flex;
    gap: 8px;
}

.create-custom-tags__input input {
    flex: 1;
}

.create-custom-tags__add {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.create-custom-tags__add:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.create-custom-tags__add svg {
    width: 16px;
    height: 16px;
}

/* Responsive für Ruleset Select */
@media (max-width: 600px) {
    .ruleset-select {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .create-tags-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.session-modal__section {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.session-modal__section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.session-modal__section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Dharma Gothic', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0 0 20px 0;
}

.session-modal__section-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group + .form-group {
    margin-top: 8px;
}

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

.form-row + .form-group,
.form-group + .form-row {
    margin-top: 8px;
}

.form-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.form-input,
.form-input[type="text"],
.form-input[type="number"],
.form-input[type="date"],
.form-input[type="time"],
.form-select,
.form-textarea {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Select braucht Pfeil-Icon */
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.form-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-with-icon svg {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.form-input-with-icon .form-input {
    padding-left: 44px;
}

.form-select option {
    background: #1b1b1b;
    color: white;
}

.form-label input[type="checkbox"] {
    margin-right: 8px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .sessions-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sessions-hero {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .sessions-hero__visual {
        order: -1;
    }
    
    .sessions-hero__dice {
        width: 80px;
        height: 80px;
    }
    
    .sessions-hero__dice svg {
        width: 40px;
        height: 40px;
    }
    
    .active-session__card {
        flex-direction: column;
        gap: 20px;
    }
    
    .active-session__cover {
        width: 100%;
        height: 120px;
    }
    
    .active-session__timer {
        width: 100%;
    }
    
    .active-session__time {
        font-size: 36px;
    }
    
    .active-session__actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .active-session__gm-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .active-session__btn {
        flex: 1;
        width: 100%;
    }
    
    .session-card {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .session-card__cover {
        width: 100px;
        min-width: 100px;
        min-height: 75px;
    }
    
    .session-card__cover-fallback svg {
        width: 32px;
        height: 32px;
    }
    
    .session-card__date {
        flex-direction: column;
        gap: 2px;
        min-width: 50px;
        padding: 8px;
    }
    
    .session-card__num {
        font-size: 24px;
    }
    
    .session-card__content {
        flex: 1;
        min-width: 150px;
    }
    
    .session-card__actions {
        flex-direction: row;
        width: 100%;
        margin-top: 12px;
    }
    
    .sessions-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .session-modal__content {
        margin: 16px;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
    }
}

/* Form Upload Area */
.form-upload {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: hidden;
}

/* Aspect ratio variants */
.form-upload--cover {
    aspect-ratio: 3 / 1;
}

.form-upload--thumbnail {
    aspect-ratio: 2 / 3;
    max-width: 200px;
}

.form-upload:hover {
    border-color: var(--accent);
    background: rgba(255, 70, 85, 0.05);
}

.form-upload__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px;
    color: rgba(255, 255, 255, 0.4);
    position: absolute;
    inset: 0;
}

.form-upload__placeholder svg {
    width: 32px;
    height: 32px;
    opacity: 0.5;
}

.form-upload__placeholder span {
    font-size: 13px;
}

.form-upload__preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.form-upload__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.form-upload__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.form-upload__remove:hover {
    background: var(--accent);
}

/* Form Tags */
.form-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.form-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-tag:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-tag input {
    display: none;
}

.form-tag:has(input:checked) {
    background: rgba(255, 70, 85, 0.2);
    border-color: var(--accent);
    color: white;
}

/* Custom Tags */
.form-custom-tags {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-custom-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.form-custom-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 16px;
    font-size: 12px;
    color: #A78BFA;
}

.form-custom-tag button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-custom-tag button:hover {
    background: rgba(255, 70, 85, 0.3);
    color: var(--accent);
}

.form-custom-tags__input {
    display: flex;
    gap: 8px;
}

.form-custom-tags__input .form-input {
    flex: 1;
}

.form-input--sm {
    padding: 8px 12px;
    font-size: 13px;
}

.form-custom-tags__add {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 8px;
    color: #A78BFA;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-custom-tags__add:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: #A78BFA;
}

.form-custom-tags__add svg {
    width: 18px;
    height: 18px;
}

/* Form Toggle Group */
.form-toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-toggle {
    cursor: pointer;
}

.form-toggle input {
    display: none;
}

.form-toggle__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.form-toggle__box:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.form-toggle input:checked + .form-toggle__box {
    border-color: var(--accent);
    background: rgba(255, 70, 85, 0.1);
}

.form-toggle__box svg {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.5);
}

.form-toggle input:checked + .form-toggle__box svg {
    color: var(--accent);
}

.form-toggle__box span {
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.form-toggle__box small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

/* Session Created Modal */
.session-created {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.session-created__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 50%;
    margin-bottom: 20px;
}

.session-created__icon svg {
    width: 32px;
    height: 32px;
    color: #22c55e;
}

.session-created__title {
    font-family: 'Dharma Gothic', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
}

.session-created__meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 24px 0;
}

.session-created__link {
    width: 100%;
    text-align: left;
}

.session-created__link-box {
    display: flex;
    gap: 8px;
}

.session-created__link-box .form-input {
    flex: 1;
    font-family: monospace;
    font-size: 13px;
}

.session-created__link-box .btn--icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}

.session-created__link-box .btn--icon:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.session-created__link-box .btn--icon svg {
    width: 18px;
    height: 18px;
}

.form-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: -8px;
    margin-bottom: 8px;
    display: block;
}

/* Cropper Modal - MUST be on top of everything */
.rift-crop-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.98) !important;
    z-index: 999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rift-crop-modal.open {
    display: flex !important;
}

.rift-crop-modal__content {
    background: #1a1a1a;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

.rift-crop-modal__header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #222;
    flex-shrink: 0;
}

.rift-crop-modal__title {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.rift-crop-modal__close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.rift-crop-modal__close:hover {
    color: white;
}

.rift-crop-modal__body {
    flex: 1;
    overflow: hidden;
    background: #111;
    min-height: 300px;
    max-height: 55vh;
    position: relative;
}

/* Force Cropper.js to use the full container */
.rift-crop-modal__body img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.rift-crop-modal__body .cropper-container {
    max-height: 55vh !important;
}

.rift-crop-modal__footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #222;
    flex-shrink: 0;
}

.rift-crop-modal__btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rift-crop-modal__btn--cancel {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
}

.rift-crop-modal__btn--cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.rift-crop-modal__btn--save {
    background: var(--accent);
    border: none;
    color: white;
}

.rift-crop-modal__btn--save:hover {
    background: #ff5a68;
}
