.card-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 500px;
    margin: 0 auto;
    padding: 20px;
}

.profile-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease-out;
    cursor: pointer;
}

.profile-image {
    width: 100%;
    height: 70%;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    padding: 20px;
    background: white;
}

.profile-info h3 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.profile-info .bio {
    margin: 10px 0;
    font-size: 16px;
    color: #666;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-info .last-active {
    font-size: 14px;
    color: #888;
}

.swipe-buttons {
    position: relative;
    z-index: 100;
}

.swipe-overlay {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swipe-overlay.swipe-left {
    left: 20px;
    background-color: rgba(220, 53, 69, 0.8);
}

.swipe-overlay.swipe-right {
    right: 20px;
    background-color: rgba(40, 167, 69, 0.8);
}

.profile-card.swipe-left {
    transform: translateX(-150%) rotate(-30deg);
    opacity: 0;
}

.profile-card.swipe-right {
    transform: translateX(150%) rotate(30deg);
    opacity: 0;
}

.match-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.match-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    animation: pop-in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes pop-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.match-content h2 {
    color: #ff4b6e;
    margin-bottom: 20px;
}

.match-buttons {
    margin-top: 20px;
}

.match-buttons button {
    margin: 0 10px;
}

/* Loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Hover effects */
.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

.btn-outline-success:hover {
    background-color: #28a745;
    color: white;
}

/* Show swipe overlays on hover/touch */
.profile-card:hover .swipe-overlay {
    opacity: 1;
}

/* Chat styles */
.chat-container {
    height: 500px;
    border: 1px solid #ddd;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
}

.message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
    max-width: 70%;
}

.message.sent {
    background: #007bff;
    color: white;
    margin-left: auto;
}

.message.received {
    background: #f1f1f1;
    margin-right: auto;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
}
