@font-face {
    font-family: 'montserrat';
    src: url('assets/font/montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
}

.montserrat {
    font-family: 'montserrat', sans-serif;
}

.reqGapLeft:before,
.reqGapRight:before {
    content: "";
    position: absolute;
    margin: -15px;
    width: 25px;
    height: 22px;
    border-radius: 50%;
    box-shadow: 0 0 0 250px #2B3038;
}

.darkReqGap:before {
    margin: -20.5px;
    width: 30px;
    height: 27px;
    box-shadow: 0 0 0 250px #070B0B;
}

.reqGapLeft:before {
    top: 0px;
    left: 0px;
}

.reqGapRight:before {
    top: 0px;
    right: 0px;
}

html, body {
    height: 100%;
    overflow: hidden;
    position: fixed;
    width: 100%;
    overscroll-behavior-x: none;
}

input,
textarea,
.roundCard {
    font-size: 1;
    padding: 10px;
    border-radius: 8px;
    border-width: 2px;
    border-style: solid;
    border-color: #2B3038;
    background-color: #131619;
    color: #FFFFFF;
}

input {
    font-size: 1rem;
}

textarea {
    font-size: 1rem;
    resize: vertical;
}

button {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    border-style: none;
    background-color: #131619;
    color: #F0F0F0;
    cursor: pointer;
}

a {
    text-decoration: none;
    color: #F0F0F0;
}

input[type="date"],
input[type="time"] {
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
}
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border-width: 2px;
    border-style: solid;
    border-color: #2B3038;
    background-color: #131619;
    position: relative;
}

input[type="checkbox"]:checked {
    background-color: #0659E5;
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.invited {
    border-color: #0659E5;
    color: #0659E5;
}

.going {
    border-color: #999999;
    color: #999999;
}

.hosting {
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.declined {
    border-color: #FF6B6B;
    color: #FF6B6B;
}

.stepDot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #2B3038;
    cursor: pointer;
}

.stepDot.done {
    background-color: #042a6b;
    transform: scale(1.2);
}

.stepDot.current {
    background-color: #0659E5;
    box-shadow: 0 0 4px 0 #0659E5;
    transform: scale(1.4);
}

.stepDot.visited {
    background-color: #031329;
    transform: scale(1.1);
}

.stepLine {
    background-color: #131619;
}

.stepLine.done {
    background-color: #021941;
}

.stepLine.visited {
    background-color: #010d1e;
}

#title {
    transition: font-size 0.2s ease, color 0.2s ease, margin 0.2s ease, opacity 0.2s ease;
}

.titleIcon {
    transition: all 0.2s ease, opacity 0.3s ease;
    vertical-align: middle;
    margin-right: 10px;
}


.titleWrapper {
    display: flex;
    align-items: center;
    height: 80px;
    transition: height 0.2s ease;
}

#activitiesCards {
  position: relative;
  z-index: 1;
}

#activityInfo {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 200;
    box-sizing: border-box;
}

#activityInfo.active {
  transform: translateX(0);
}

.floatingPfp {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 1;
}

@keyframes floatAndGrow {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
    }
    100% {
        transform: scale(1);
    }
}

.floatingPfp.animate {
    animation: floatAndGrow 3s ease-in-out infinite;
    transition: left 0.1s linear, top 0.1s linear;
}

#profileInfo {
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

#profileInfo.active {
    transform: translateY(0);
}

/* Profile info menu styles */
#profileInfoMenuBtn:hover {
    background-color: #2B3038;
}

#profileInfoMenu > div:hover {
    background-color: #1A2023;
}

#grayOverlay {
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

#grayOverlay.active {
  opacity: 0.8;
  pointer-events: auto;
}

#searchUsersOverlay {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

#searchUsersOverlay.active {
    transform: translateX(0);
}

.sortButton {
    background-color: #131619;
    color: #666666;
}

.sortButton.active {
    background-color: #1f1064;
    color: #5788df;
}

/* Update the switch styles for better iOS compatibility */
.switch {
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    position: relative;
    touch-action: manipulation;
    display: inline-block;
    width: 50px;
    height: 25px;
}

.switch input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    pointer-events: auto;
    margin: 0;
    padding: 0;
}

.slider {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2B3038;
    transition: 0.3s;
    border-radius: 25px;
}

.slider:before {
    pointer-events: none;
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #1652b9;
}

input:checked + .slider:before {
    transform: translateX(25px);
}

#activityPoster {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
}

/* Theme preview frame: always visible, transparent when no image */
#activityThemePreview {
    display: block !important; /* always render frame */
    background-color: transparent; /* transparent by default */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.04); /* subtle frame */
    min-height: 120px; /* ensure visible area even with no image */
    background-size: cover;
    background-position: center;
}
#activityThemePreview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

/* Activities list: snap by day and keep the day label visible */
#activitiesCards #activitiesContent {
  /* let the scroller align to day groups rather than random offsets */
  scroll-snap-type: y proximity;
  scroll-padding-top: 10px; /* room so headers aren't flush to the top */
}

.activityDateGroup {
  scroll-snap-align: start;
}

/* Make the day header stick while scrolling through activities in that day */
.activityDateGroup .dateHeader {
  position: sticky;
  top: 0;                /* adjust if you have another fixed header above */
  z-index: 5;
  background-color: #050909; /* match page bg so text stays readable */
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Thin line that extends to the right inside the date header */
.activityDateGroup .headerLine {
  flex: 1 1 auto;
  height: 1px;
  background-color: #2B3038;
  border: 0;
  margin: 0;
}

/* Small gap under the header so first card doesn't touch it */
.activityDateGroup .activitiesForDate {
  margin-top: 6px;
}

/* Ensure long titles don't overflow */
#activitiesCards .name,
#activityInfo .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0; /* required inside flex layouts for ellipsis to work */
}

/* Activity card title row layout fixes */
#activitiesCards .name {
  display: block !important;   /* override any inline display:flex */
  flex: 1 1 0;
  min-width: 0;                /* allow shrink so ellipsis can work */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#activitiesCards .status {
  flex: 0 0 auto;              /* do not shrink */
  white-space: nowrap;
}

/* Disabled state for API-busy controls (works for div “buttons” too) */
.is-disabled,
button[disabled] {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

#settingsOverlay {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

#settingsOverlay.active {
  transform: translateX(0);
}

#activityPollsOverlay {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

#activityPollsOverlay.active {
  transform: translateX(0);
}

.settingsSection {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}
.settingsSection.active {
  transform: translateX(0);
}

.backgroundTextures {
    background-image: url('assets/images/background.png');
    background-repeat: repeat, repeat;
    background-size: cover, cover;
}

/* Invite Friends overlay slide-in */
#inviteFriendsOverlay {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  will-change: transform;
}
#inviteFriendsOverlay.active {
  transform: translateX(0);
}

/* Optional: while swiping (set by JS) */
#inviteFriendsOverlay.swiping {
  transition: none;
}

/* Profile picture crop overlay slide-up */
#pfpCropOverlay {
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
#pfpCropOverlay.active {
  transform: translateY(0);
}

#pfpCropViewport img.dragging {
  cursor: grabbing;
}

/* Activity card with active poll - dashed border */
.hasPoll {
    border: 2px dashed #2B3038;
    box-sizing: border-box;
}

/* Sticker Canvas Styles */
.stickerCanvasContainer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stickerCanvas {
    aspect-ratio: 4 / 1;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    position: relative;
}

.sticker {
    pointer-events: auto;
    touch-action: none;
}

.sticker:active {
    cursor: grabbing !important;
}

/* Poll section styling */
.pollSection {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
}

.pollSection h4 {
    margin: 0 0 4px 0;
    color: #888888;
    font-size: 0.9rem;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 12px;
}

.pollSection h4 svg {
    width: 0px;
    height: 0px;
    color: #888888;
    display: none;
}

.pollOptions {
    background-color: #131619;
    border-radius: 0;
    padding: 0;
    margin-left: -5vw;
    margin-right: -5vw;
    padding-left: 5vw;
    padding-right: 5vw;
}

.pollOptions .pollOption {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 0;
    background-color: transparent;
    border-radius: 0;
    margin-bottom: 0;
    cursor: pointer;
    border: none;
    border-top: 1px solid #2B3038;
    transition: background-color 0.2s ease;
}

.pollOptions .pollOption:first-child {
    border-top: none;
}

.pollOptions .pollOption.selected {
    background-color: transparent;
}

.pollSection:not([data-close-mode="true"]) .pollOption.winning .pollOptionText {
    color: #0659E5;
    font-weight: bold;
}

.pollOptions .pollOptionLeft {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.pollOptions .pollOptionMain {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.pollOptions .pollOptionCheckbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #555555;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.pollOptions .pollCheckmark {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: transparent;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s ease;
}

.pollOptions .pollOption.selected .pollOptionCheckbox {
    border-color: #0659E5;
    background-color: #0659E5;
}

.pollOptions .pollOption.selected .pollCheckmark {
    stroke: #ffffff;
}

.pollOptions .pollVoters {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.pollOptions .pollVoterAvatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-left: -6px;
}

.pollOptions .pollVoterAvatar:first-child {
    margin-left: 0;
}

.pollOptions .pollVoterAvatar:hover {
    transform: scale(1.1);
}

.pollOptions .pollVotersMore {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #2B3038;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #888888;
}

.pollOptions .pollOptionText {
    color: #f0f0f0;
    font-size: 1rem;
    flex: 1;
}

.pollOptions .pollOptionVotes {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.pollOptions .pollVoteBar {
    flex: 1;
    height: 6px;
    background-color: #2B3038;
    border-radius: 3px;
    overflow: hidden;
}

.pollOptions .pollVoteBarFill {
    height: 100%;
    background-color: #555555;
    border-radius: 3px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.pollOptions .pollOption.selected .pollVoteBarFill {
    background-color: #7a7a7a;
}

.pollOptions .pollOption.winning .pollVoteBarFill {
    background-color: #0659E5;
}

.pollOptions .pollOption.selected.winning .pollVoteBarFill {
    background-color: #0659E5;
}

/* Closed poll styles */
.pollSection.pollClosed {
    opacity: 0.85;
}

.pollOptions .pollOption.pollClosed {
    cursor: default !important;
    pointer-events: none;
}

/* Close mode selection styles */
.pollOptions .pollOption.selected-for-close {
    border-top: 1px solid #0659E5 !important;
    border-bottom: 1px solid #0659E5 !important;
    border-left: none #0659E5 !important;
    border-right: none !important;
    background-color: #0659E51A !important;
    transform: scale(1.02);
    box-shadow: 0 0 12px rgba(6, 89, 229, 0.3);
    margin-left: -5vw !important;
    margin-right: -5vw !important;
    padding-left: 5vw !important;
    padding-right: 5vw !important;
}

.pollOptions .pollOption.selected-for-close .pollOptionText {
    color: #0659E5 !important;
    font-weight: 600;
}

/* Hide checkboxes when in close mode */
.pollSection[data-close-mode="true"] .pollOptionCheckbox {
    display: none !important;
}

.pollSection[data-close-mode="true"] .pollOption.winning .pollVoteBarFill {
    background-color: #555555;
}

.pollOptions .pollOption.pollClosed .pollVoteBarFill {
    background-color: #444444 !important;
}

.pollCloseButton:hover {
    background-color: #0747C0 !important;
}

.pollDeleteButton:hover {
    background-color: rgba(255, 68, 68, 0.1);
}

/* Notification badge styles */
.notificationBadge {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: #FF4444;
    border-radius: 50%;
    border: 2px solid #070B0B;
    z-index: 10;
}

/* Dial Pad Styles */
.dialButton {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background-color: #1a1a1a;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    transition: background-color 0.2s;
    user-select: none;
}

.dialButton:hover {
    background-color: #2a2a2a;
}

.dialButton:active {
    background-color: #333333;
}

.dialButton .digit {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.dialButton .letters {
    font-size: 0.65rem;
    color: #999999;
    margin-top: 2px;
    letter-spacing: 0.05rem;
}

#dialPadDelete {
    transition: opacity 0.2s ease;
}