:root {
    --header-gradient-start: #E6E6FA;
    --header-gradient-end: #D8BFD8;
    --nav-inactive: #6c757d;
    --nav-active: #C83D48;
    --bottom-nav-inactive: #c7c7c7;
}
html, body {
    height: 100%;
}
body {
    font-family: 'Poppins', sans-serif;
    /* padding-bottom: 80px; */
}

.fs-7 {
    font-size: 0.75rem;
}

.line-clamp-1{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.line-clamp-2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.line-clamp-3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

.font-monospace{font-family:var(--phoenix-font-monospace) !important}
.fs-1{font-size:4.768371582rem !important}
.fs-2{font-size:3.8146972656rem !important}
.fs-3{font-size:3.0517578125rem !important}
.fs-4{font-size:2.44140625rem !important}.fs-5{font-size:1.953125rem !important}
.fs-6{font-size:1.5625rem !important}
.fs-7{font-size:1.25rem !important}
.fs-8{font-size:1rem !important}
.fs-9{font-size:.8rem !important}
.fs-10{font-size:.64rem !important}
.fs-11{font-size:.512rem !important}

.white-space-nowrap {
    white-space: nowrap;
}

.text-opacity-25 {
    opacity: 0.25;
  }
  
  .text-opacity-50 {
    opacity: 0.5;
  }
  
  .text-opacity-75 {
    opacity: 0.75;
  }
  
  .text-opacity-85 {
    opacity: 0.85;
  }
  
  .text-opacity-100 {
    opacity: 1;
  }

.required::after {
    content: '*';
    color: red;
    margin-left: 2px;
}

.form-label {
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Top and bottom navigation */

.top-header {
    /* background: linear-gradient(to right, var(--header-gradient-start), var(--header-gradient-end)); */
    padding: 20px 0;
    position: fixed;
    z-index: 1000;
    /* position: relative; */
    width: 100%;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    transition: all 0.5s ease;
}
    .top-header.bg-white-blur {
        background: rgba(255,255,255,0.8);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .top-header .back-button {
        position: absolute;
        left: 20px;
        width: 40px;
        height: 40px;
        background-color: #f8f8f8;
        border: 1px solid #e6e6e6;
        border-radius: 12px;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: none;
        transition: background-color 0.2s ease;
    }

    .top-header .back-button:hover {
        background-color: #f2f2f2;
    }
    
    .top-header .back-button:active {
        background-color: #eaeaea;
    }
    
    .top-header .back-button i {
        font-size: 20px;
        color: #333;
    }
  
    .top-header .title {
        flex: 1;
        text-align: center;
        margin: 0;
        padding: 0;
    }

.navbar-brand {
    color: #4B0082;
    font-weight: 600;
}
    .navbar-brand img {
        height: 25px;
    }

.content {
    padding-top: 74px;
    padding-bottom: 70px;
    height: 100%;
}
    .content.home {
        padding-top: 0;
    }
    
.bottom-nav {
    position: fixed;
    bottom: -1px;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2147483648;
    padding: 12px 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}
.bottom-nav ul {
    display: flex;
    justify-content: space-around;
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.nav-item {
    text-align: center;
}
.nav-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
    .bottom-nav .nav-link {
        color: var(--bottom-nav-inactive);
    } 
    .bottom-nav .nav-link span {
        font-size: 12px;
    }
.nav-link:hover, .nav-link.active {
    color: var(--nav-active);
}
.nav-link i {
    font-size: 24px;
    line-height: 1;
}

.nav-explore .nav-link.active {
    color: white;
    background: var(--nav-active);
}
.nav-explore .nav-link {
    color: var(--nav-active);
}

/* Swiper */

.swiper-container {
    width: 100%;
    height: calc(100vh - 60px); /* Adjust based on your header and nav heights */
}
.swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.profile-photo {
    background-size: cover;
    background-position: center;
    height: 100%;
}
.profile-info {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: white;
    padding: 20px 20px 60px;
    position: absolute;
    width: 100%;
}
.profile-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}
.profile-bio {
    font-size: 1rem;
    margin-bottom: 10px;
}
.floating-buttons {
    position: absolute;
    bottom: 100px;
    right: 20px;
    z-index: 1030;
    display: flex;
    flex-direction: column;
}
.floating-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #333;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.floating-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.floating-button.like-button i {
    color: #cc0000;
}
.floating-button.favorite-button i {
    color: gold;
}

/* Profile Action Buttons */
.profile-action-buttons {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.middle-buttons {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    display: flex;
    gap: 16px;
}

.btn-action {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-action i {
    font-size: 32px;
}

/* Like button */
.like i { color: #cc0000; }

/* Message button */
.message i { color: #198754; }

/* Favorite button */
.favorite { width: 48px; height: 48px; }
.favorite i { color: gold; font-size: 24px; }

/* Block button */
.block { width: 48px; height: 48px; }
.block i { color: #6c757d; font-size: 24px; }

/* Hover state for all buttons */
.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Active state for all buttons */
.btn-action:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    opacity: 0.9;
}

/* Focus state */
.btn-action:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* Cropper */

.img-container {
    max-width: 80%;
    max-height: 450px;
    margin: 0 auto;
}

/* Chat */

.chat-container {
    /* height: calc(100vh - 170px); */
    height: 100%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.chat-header {
    /* background-color: #ffffff; */
    /* color: #333333; */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.chat-messages {
    /* height: calc(100% - 120px); */
    height: 100%;
    overflow-y: auto;
    padding: 1rem;
    /* background-color: aliceblue; */
}
.message {
    max-width: 70%;
    margin-bottom: 1rem;
    position: relative;

    /* max-width: 65%; */
    /* margin-bottom: 10px; */
    padding: 8px 15px;
    border-radius: 7.5px;
    position: relative;
    word-wrap: break-word;
}
    .message.received {
        background: white;
        float: left;
        clear: both;
    }

    .message.sent {
        background: #d9fdd3;
        float: right;
        clear: both;
    }

    .message::after {
        content: "";
        clear: both;
        display: table;
    }
.message-content {
    padding: 0.5rem 1rem;
    border-radius: 20px;
}
.message-owner .message-content {
    background-color: #dcf8c6;
}
.message-user .message-content {
    background-color: #fff;
}
.message-time {
    font-size: 0.75rem;
    color: #777;
    float: right;
    margin-left: 0.4rem;
    margin-top: 0.2rem;
}
.chat-input {
    /* background-color: #E86775; */
    /* border-bottom-left-radius: 10px; */
    /* border-bottom-right-radius: 10px; */

    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* bottom: 8px;
    left: 12px;
    right: 12px; */
}
.chat-input .form-control {
    border: none;
    border-radius: 20px;
    background-color: #fff;
}
.btn-send {
    border-radius: 50%;
    width: 50px;
    /* height: 36px; */
    padding: 0;
    line-height: 40px;
}

/* Filter Slider */

.filter-slider-container {
    padding: 40px 20px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
    .filter-slider-container .noUi-connect {
        background: #007bff;
    }
    .filter-slider-container .noUi-handle {
        border: none;
        background: #007bff;
        box-shadow: 0 0 0 5px #fff, 0 0 0 6px #007bff;
        cursor: grab;
    }
    .filter-slider-container .noUi-handle:before, .noUi-handle:after {
        display: none;
    }
    .filter-slider-container .noUi-handle:active {
        cursor: grabbing;
    }
    .filter-slider-container .noUi-horizontal {
        height: 8px;
    }
    .filter-slider-container .noUi-horizontal .noUi-handle {
        width: 20px;
        height: 20px;
        right: -10px;
        top: -7px;
        border-radius: 50%;
    }

.filter-slider-labels {
    display: flex;
    justify-content: space-between;
    color: #495057;
    font-weight: bold;
}

/* Match popup styles */
.match-container-popup {
    border-radius: 15px;
    padding: 20px;
    animation: match-popup-animation 0.5s ease-out;
}

.match-container-content {
    text-align: center;
    padding: 10px;
}

.match-container-profile {
    margin: 0 auto 20px;
    position: relative;
    width: 120px;
    height: 120px;
    overflow: hidden;
}

.match-container-profile img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.match-container-profile img:hover {
    transform: scale(1.05);
}

.match-container-message {
    font-size: 1.2rem;
    margin: 15px 0;
    color: #333;
}

.match-container-hearts {
    position: relative;
    height: 100px;
    margin-bottom: 20px;
}

.match-container-heart {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #ff4b7d;
    transform: rotate(45deg);
    animation: match-heart-float 3s ease-in-out infinite;
}

.match-container-heart:before,
.match-container-heart:after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #ff4b7d;
    border-radius: 50%;
}

.match-container-heart:before {
    top: -15px;
    left: 0;
}

.match-container-heart:after {
    top: 0;
    left: -15px;
}

.match-container-heart:nth-child(1) {
    left: 10%;
    animation-delay: 0.2s;
}

.match-container-heart:nth-child(2) {
    left: 30%;
    animation-delay: 0.4s;
}

.match-container-heart:nth-child(3) {
    left: 50%;
    animation-delay: 0.6s;
}

.match-container-heart:nth-child(4) {
    left: 70%;
    animation-delay: 0.8s;
}

.match-container-heart:nth-child(5) {
    left: 90%;
    animation-delay: 1s;
}

@keyframes match-heart-float {
    0%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    50% {
        transform: translateY(-20px) rotate(45deg);
    }
}

@keyframes match-popup-animation {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Profile Photo */
.photo-gallery .photo-card {
    transition: all 0.3s ease;
}

.photo-container {
    aspect-ratio: 1/1;
    background-color: #f8f9fa;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    height: 100%;
    width: 100%;
}

.photo-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.photo-card.empty-photo .photo-container {
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    cursor: pointer;
}

.photo-card.empty-photo .photo-container:hover {
    border-color: #0d6efd;
    background-color: #f0f4ff;
}

.status-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px;
    font-size: 0.8rem;
    text-align: center;
    color: white;
}

.status-badge.pending {
    background-color: rgba(255, 193, 7, 0.8);
}

.status-badge.rejected {
    background-color: rgba(220, 53, 69, 0.8);
}

.status-badge.primary {
    background-color: rgba(25, 135, 84, 0.8);
}

.photo-card.is-primary .photo-container {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.photo-card.is-rejected img {
    filter: grayscale(70%);
}

.photo-gallery .action-buttons {
    display: flex;
    justify-content: center;
}

.photo-gallery .action-buttons .btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}