/* Main deck container */
.user-deck {
    position: relative;
    width: 300px;
    height: 400px;
    margin: 0rem auto;
    perspective: 1000px;
    padding: 0;
}

/* User card styling */
.user-card {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
    padding: 0;
    margin: 0;
}

/* Profile image container - Cover version */
.profile-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: white;
    padding: 0;
    margin: 0;
}

/* User image styling - Cover version */
.user-card img, .profile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    padding: 0;
    margin: 0;
}

/* Name overlay styling */
.user-card h3 {
    position: absolute;
    bottom: 50px;
    left: 20px;
    color: white !important;
    font-size: 1.4rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    margin: 0;
    z-index: 2;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-age {
    font-size: 1.2rem !important;
    opacity: 0.9;
    font-weight: 500;
    position: relative;
    padding-left: 5px;
}

.user-card .user-location {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white !important;
    font-size: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    margin: 0;
    z-index: 2;
    font-weight: 400;
    width: calc(100% - 40px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Gradient overlay for name */
.user-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 1;
    display: block !important;
    opacity: 1 !important;
}

/* Button container */
.buttons-container {
    display: flex;
    justify-content: center;
    gap: 8px !important;
    margin-top: 15px;
}

/* Base button styling */
.buttons-container button {
    padding: 12px 16px !important;
    border: none;
    border-radius: 100px !important;
    cursor: pointer;
    font-size: 1.2rem;
    min-width: 70px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button active state */
.buttons-container button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* No button styling - for customers */
.role-customer .vote-no {
    background: linear-gradient(to right, #FF9EB5, #FF7A9A);
}

.role-customer .vote-no:hover {
    background: linear-gradient(to right, #FF7A9A, #FF5C7F);
}

/* Yes button styling - for customers */
.role-customer .vote-yes {
    background: linear-gradient(to right, #2EC4B6, #20A89A);
}

.role-customer .vote-yes:hover {
    background: linear-gradient(to right, #20A89A, #1A8E82);
}

/* Undo and Direct Message buttons for customers */
.role-customer .undo-vote, .role-customer .direct-message {
    background: linear-gradient(to right, #444444, #222222) !important;
    color: white !important;
}

.role-customer .undo-vote:hover, .role-customer .direct-message:hover {
    background: linear-gradient(to right, #222222, #111111);
}

/* DISABLED BUTTON STYLES FOR SUBSCRIBERS */
/* Disable voting buttons for subscribers */
body:not(.role-customer) .buttons-container .vote-no,
body:not(.role-customer) .buttons-container .vote-yes {
    background: linear-gradient(to right, #dddddd, #bbbbbb) !important;
    color: #888888 !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Disable direct message button for subscribers */
body:not(.role-customer) .buttons-container .direct-message {
    background: linear-gradient(to right, #dddddd, #bbbbbb) !important;
    color: #888888 !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Disable undo button for subscribers */
body:not(.role-customer) .buttons-container .undo-vote {
    background: linear-gradient(to right, #dddddd, #bbbbbb) !important;
    color: #888888 !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Remove hover effects for disabled buttons */
body:not(.role-customer) .buttons-container .vote-no:hover,
body:not(.role-customer) .buttons-container .vote-yes:hover,
body:not(.role-customer) .buttons-container .direct-message:hover,
body:not(.role-customer) .buttons-container .undo-vote:hover {
    background: linear-gradient(to right, #dddddd, #bbbbbb) !important;
    transform: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Animation for card removal */
.user-card.hidden {
    opacity: 0;
    transform: translateY(-20px) rotate(5deg);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Emoji spacing in buttons */
.buttons-container button::before {
    margin-right: 8px;
    font-size: 1.3em;
}

/* PROFILE PAGE STYLING */
.user-profile {
    max-width: 350px;
    margin: 2rem auto;
    text-align: left;
    padding: 0 15px;
}

.profile-card {
    width: 100%;
    height: 500px;
    margin: 0 auto 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    position: relative;
    background: #f5f5f5;
}

.profile-card .profile-image-container {
    width: 100%;
    height: 100%;
}

.profile-card .avatar {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.profile-info {
    padding: 0;
}

.profile-info h2 {
    font-size: 2rem;
    margin: 1rem 0;
    color: #333;
    text-align: left;
}

.profile-details {
    text-align: left;
    margin-top: 20px;
}

.detail-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.detail-row .material-icons {
    color: #666;
    font-size: 20px;
    margin-right: 10px;
}

.detail-label {
    font-weight: bold;
    width: 100px;
    color: #555;
}

.detail-value {
    flex: 1;
    color: #333;
    font-size: 16px;
}

/* Profile actions container */
.profile-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #fff;
}

/* Unified button styling */
.message-button, .unmatch-link {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
    margin-bottom: 20px;
}

.message-button {
    background: #c03732;
    color: white !important;
    border: 1px solid #c03732;
    width: 48% !important;
}

.message-button:hover {
    background: #a0302a;
    border-color: #a0302a;
}

/* Unmatch button specific */
.unmatch-link {
    background: white;
    color: #c03732;
    border: 1px solid #c03732;
    width: 48% !important;
}

.unmatch-link:hover {
    background: #f8f8f8;
    color: #a0302a;
    border-color: #a0302a;
}

/* Separator styling */
.action-separator {
    color: #ddd;
    font-weight: 300;
}

/* MATCHES LIST STYLING */
.matches-list {
    list-style: none;
    padding: 0;
    max-width: 400px;
    margin: 1rem auto;
}

.matches-list li {
    padding: 15px 50px 15px 15px;
    margin: 15px 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    position: relative;
}

.matches-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.match-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    width: 100%;
}

.match-photo-container {
    width: 80px;
    height: 80px;
    min-width: 80px;
    margin-right: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: relative;
    background: #f5f5f5;
}

.match-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.match-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.match-name {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 1.15em;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-country {
    font-size: 0.92em;
    color: #666;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-envelope {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: #333333;
    width: 24px;
    height: 24px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.match-envelope:hover {
    color: #c03732;
    transform: translateY(-50%) scale(1.1);
}

.match-envelope svg {
    width: 100%;
    height: 100%;
}

/* Avatar fallback styling */
.match-photo.avatar {
    object-fit: cover;
}

/* MESSAGING STYLES */
.message-form-container {
    margin: 20px 0;
}

.message-input {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.send-message {
    padding: 10px 20px;
    background: #c03732;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.send-message:hover {
    background: #4a6cf7;
}

.messages-list {
    list-style: none;
    padding: 0;
    max-width: 400px;
    margin: 0 0 0 0rem !important;
}

.messages-list li {
    position: relative;
    padding: 15px;
    margin: 15px 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.message-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    width: 100%;
}

.message-photo-container {
    width: 80px;
    height: 80px;
    min-width: 80px;
    margin-right: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: relative;
    background: #f5f5f5;
}

.message-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.message-info {
    flex-grow: 1;
    min-width: 0;
}

.message-partner-name {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 1.15em;
    color: #222;
}

.message-preview {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-time {
    font-size: 0.8em;
    color: #999;
}

/* Red dot for unread messages */
.unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ff0000;
    border-radius: 50%;
    margin-left: 5px;
    vertical-align: middle;
}

/* CONVERSATION VIEW STYLES */
.conversation-view {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 60px;
    height: auto;
    border: none;
    z-index: 990;
    overflow: hidden;
}

.messages-container {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.message-bubble {
    max-width: 70%;
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
}

.incoming {
    align-self: flex-start;
    background: #383939ed;
    color: white;
    border-bottom-left-radius: 4px;
}

.outgoing {
    align-self: flex-end;
    background: #731411;
    color: white;
    border-bottom-right-radius: 4px;
}

.message-content {
    margin-bottom: 5px;
}

.message-time {
    font-size: 0.7em;
    opacity: 0.8;
    text-align: right;
}

.read-status {
    margin-left: 5px;
}

.message-composer {
    display: flex;
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.new-message-input {
    flex: 1;
    padding: 10px 15px;
    border: 0px solid #ddd;
    border-radius: 20px;
    resize: none;
    min-height: 20px;
    max-height: 120px;
    line-height: 1.2em !important;
    border-color: #ffffff !important;
}

.chat-send {
    margin-left: 10px;
    background: #f9f9f9;
    color: #333333;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    padding: 10px 15px;
    line-height: normal !important;
    height: auto !important;
}

.messages-anchor {
    float: left;
    clear: both;
}

/* Profile Page Styles */
.profile-page-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 15px;
}

.profile-page-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.profile-form {
    background: white;
    border-radius: 10px;
}

.profile-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.profile-image-container {
    flex: 0 0 300px;
    text-align: center;
}

#profile-image-preview {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.image-upload-container {
    margin-top: 1rem;
}

.upload-button {
    display: inline-block;
    padding: 10px 20px;
    background: #f9f9f9;
    color: #808080;
    border-radius: 0px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.upload-button:hover {
    background: #a0302a;
    color: white;
}

#profile-picture-upload {
    display: none;
}

.profile-info {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input[disabled] {
    background: #f5f5f5;
    color: #666;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.age-display {
    color: #666;
    font-size: 0.9em;
    margin-left: 10px;
}

.save-button {
    padding: 12px 25px;
    background: #c03732;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.save-button:hover {
    background: #a0302a;
}

.form-status {
    margin-top: 1rem;
    min-height: 20px;
}

/* Account Settings Styles */
.account-settings {
    max-width: 600px;
    margin: 2rem auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0);
}

.account-option {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.account-option:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.account-option h3 {
    margin-top: 0;
    color: #333;
}

.account-option p {
    margin-bottom: 1rem;
    color: #666;
}

.hide-account, .unhide-account, .request-delete-account {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.hide-account, .request-delete-account {
    background: #c03732;
    color: white;
}

.hide-account:hover, .request-delete-account:hover {
    background: #a0302a;
}

.unhide-account {
    background: #2EC4B6;
    color: white;
}

.unhide-account:hover {
    background: #20A89A;
}

/* Admin styles */
.wp-list-table .column-matches {
    width: 80px;
    text-align: center;
}

.wp-list-table .column-age {
    width: 60px;
    text-align: center;
}

.wp-list-table .column-status {
    width: 80px;
}

.wp-list-table .column-joined {
    width: 120px;
}

/* Potential matches slider */
.potential-matches-slider {
    margin-bottom: 2rem;
    padding: 0 15px;
}

.potential-matches-slider h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.slider-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slider-container::-webkit-scrollbar {
    display: none;
}

.slider-item {
    flex: 0 0 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.slider-item img.blurred, .slider-item .blurred {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px);
    cursor: pointer;
    transition: filter 0.3s ease;
}

.slider-item .blurred:hover {
    filter: blur(7px);
}

/* Subscriber Messages Layout */
.subscriber-messages {
    max-width: 600px;
    margin: 0 auto;
}

.subscriber-messages h2 {
    color: #c03732;
    font-size: 1.5rem;
    margin: 0.5rem 0 0rem;
    padding-bottom: 5px;
}

.requests-list .message-link {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.requests-list .message-link:hover {
    opacity: 1;
}

.request-notice {
    background: #fff8e5;
    padding: 15px;
    margin: 15px;
    border-radius: 5px;
    border-left: 4px solid #ffc107;
}

.limit-notice {
    background: #ffebee;
    padding: 15px;
    margin: 15px;
    border-radius: 5px;
    border-left: 4px solid #f44336;
}

.limit-notice p {
    margin: 0;
    color: #d32f2f;
}

/* Message actions */
.message-actions {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.message-actions-toggle {
    cursor: pointer;
    font-size: 1.5rem;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.message-actions-toggle:hover {
    background: rgba(0,0,0,0.1);
}

.message-actions-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: rgba(0,0,0,0);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0);
    padding: 10px 0;
    min-width: 180px;
    display: none;
    z-index: 10;
}

.message-actions:hover .message-actions-menu {
    display: block;
}

.message-actions-menu button {
    display: block;
    width: 100%;
    padding: 8px 15px;
    text-align: left;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    transition: background 0.2s ease;
}

.message-actions-menu button:hover {
    background: #f5f5f5;
}

/* Paused messages */
.paused-list .message-link {
    opacity: 0.7;
}

.paused-list .message-link:hover {
    opacity: 1;
}

/* Upgrade notice styles */
.upgrade-notice {
    background: #fff8e5;
    padding: 15px;
    margin: 15px;
    border-radius: 5px;
    border-left: 4px solid #ffc107;
    text-align: center;
}

.upgrade-button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #c03732;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.upgrade-button:hover {
    background: #a0302a;
}

.upgrade-notice h3 {
    margin-top: 0;
    color: #c03732;
}

.info-text {
    text-align: center;
    margin: 0 0 0 0rem;
    color: #c03732 !important;
    font-size: 1.2rem !important;
    font-weight: 400 !important;
}

/* Welcome Page Styles */
.welcome-container {
    padding: 0 15px;
    margin: 0 15px 0 15px;
}

.welcome-container .user-card {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
}

.continue-button:hover {
    background: #a0302a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.continue-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Footer Navigation Styles */
.user-matcher-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100% !important;
    height: 60px;
    box-sizing: border-box;
    background: #333333;
    border-top: 4px solid #333333;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    margin: 0 auto;
    padding: 0 5px;
}

.user-matcher-footer a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #f9f9f9 !important;
    font-size: 0.8rem;
    padding: 8px 0;
    transition: color 0.2s ease;
    flex-grow: 1;
    text-align: center;
    position: relative;
    max-width: 20%;
}

.user-matcher-footer a .material-icons {
    font-size: 1.3rem !important;
}

.user-matcher-footer a:hover {
    color: #ffffff;
}

.user-matcher-footer a.active {
    color: #ffffff !important;
}

.user-matcher-footer span {
    font-size: 0.7em; /* Adjust font size for the labels */
    text-align: center;
    white-space: nowrap; /* Prevent labels from wrapping */
    color: #f9f9f9; /* Label color */
}

.user-matcher-footer a.active span {
    color: #ffffff !important; /* Active label color */
}

/* Conversation header styles */
.conversation-header {
    display: flex;
    align-items: center;
    padding: 8px !important;
    background: #f9f9f9 !important;
    border-bottom: 1px solid #ffffff !important;
    position: sticky;
    top: 0;
    z-index: 10;
}

.conversation-header a {
    margin-right: 15px;
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
}

.conversation-header a:hover {
    color: #c03732;
}

.partner-info {
    display: flex;
    align-items: center;
}

.partner-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .matches-list, .messages-list {
        max-width: 100%;
        padding: 0 15px;
    }

    .matches-list li {
        padding: 12px 45px 12px 12px;
    }

    .match-photo-container, .message-photo-container {
        width: 70px;
        height: 70px;
        min-width: 70px;
        margin-right: 15px;
    }

    .match-envelope {
        right: 30px;
        width: 22px;
        height: 22px;
    }

    .profile-card {
        height: 450px;
    }

    .matches-heading, .active-messages-heading {
        font-size: 1.1rem !important;
        margin: 0 0 0 1rem !important;
    }

    .likes-heading {
        font-size: 1.1rem !important;
        margin-bottom: 10px;
    }

    .profile-section {
        flex-direction: column;
    }

    .profile-image-container {
        flex: 1;
    }

    #profile-image-preview {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 1/1;
    }

    .message-bubble {
        max-width: 80%;
    }
}

@media (max-width: 480px) {
    .matches-list li, .messages-list li {
        padding: 10px 40px 10px 10px;
    }

    .match-photo-container, .message-photo-container {
        width: 60px;
        height: 60px;
        min-width: 60px;
        margin-right: 12px;
    }

    .match-envelope {
        right: 10px;
        width: 20px;
        height: 20px;
    }

    .buttons-container button {
        padding: 12px 25px;
        font-size: 1.1rem;
        min-width: 70px;
    }

    .profile-card {
        height: 400px;
    }

    .profile-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .action-separator {
        display: none;
    }

    .message-partner-name {
        font-size: 1em;
    }

    .message-preview {
        font-size: 0.85em;
    }

    .slider-item {
        flex: 0 0 80px;
        height: 80px;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .user-matcher-footer {
        padding: 5px 0;
    }

    .user-matcher-footer a .material-icons {
        font-size: 1.2rem;
        margin-right: 3px;
    }

    .user-matcher-footer a span {
        font-size: 0.7rem;
    }
}

@media (max-width: 320px) {
    .match-photo-container {
        width: 50px;
        height: 50px;
        min-width: 50px;
        margin-right: 10px;
    }

    .match-envelope {
        right: 15px;
        width: 18px;
        height: 18px;
    }
}

/* Footer notification badges */
.user-matcher-footer a {
    position: relative;
}

.footer-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    background: #ffffff;
    color: #333333 !important;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 480px) {
    .footer-badge {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }
}

/* Country Directory Styles */
.country-directory {
    max-width: 600px;
    margin: 0 0.1rem 0 0.1rem;
    padding: 0 15px;
}

.country-selector {
    margin-bottom: 2rem;
    text-align: center;
}

.country-selector select {
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid #ddd;
    min-width: 250px;
    background: white !important;
}

.directory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.directory-list li {
    padding: 15px;
    margin: 15px 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.directory-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.directory-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    width: 100%;
}

.directory-photo-container {
    width: 80px;
    height: 80px;
    min-width: 80px;
    margin-right: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: relative;
    background: #f5f5f5;
}

.directory-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.directory-info {
    flex-grow: 1;
    min-width: 0;
}

.directory-name {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 1.15em;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.directory-hobbies {
    font-size: 0.92em;
    color: #666;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .directory-list {
        max-width: 100%;
        padding: 0 15px;
    }

    .directory-list li {
        padding: 12px;
    }

    .directory-photo-container {
        width: 70px;
        height: 70px;
        min-width: 70px;
        margin-right: 15px;
    }
}

@media (max-width: 480px) {
    .directory-list li {
        padding: 10px;
    }

    .directory-photo-container {
        width: 60px;
        height: 60px;
        min-width: 60px;
        margin-right: 12px;
    }

    .directory-name {
        font-size: 1em;
    }

    .directory-hobbies {
        font-size: 0.85em;
    }
}

/* Add this to your style.css */
.user-card-container {
    position: relative;
    width: 300px;
    margin: 0 auto;
    perspective: 1000px;
    padding-bottom: 20px;
}

.user-card-container .user-card {
    position: relative;
    margin-bottom: 15px;
}

.user-card-container .buttons-container {
    margin-top: 15px;
}

/* Add this to your style.css */
.buttons-container button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #dddddd !important;
    background-image: none !important;
}

.buttons-container button:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* style.css - add these styles */
.user-card.out-of-users {
    background: #000 !important;
    color: white !important;
}

.user-card.out-of-users .profile-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.user-card.out-of-users h3,
.user-card.out-of-users p {
    color: white !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.user-card.out-of-users::after {
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent) !important;
}