* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #fd2d6b;
    --secondary: #4e54c8;
    --accent: #ff3366;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #28a745;
    --like: #4cd964;
    --nope: #fd2d6b;
    --super-like: #2c9cff;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --facebook: #3b5998;
    --google: #db4437;
}

body {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #333;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-container {
    width: 100%;
    max-width: 1200px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    min-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    color: var(--primary);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo i {
    color: var(--accent);
    font-size: 32px;
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

nav ul li a:hover {
    color: var(--accent);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logout-btn {
    color: var(--gray);
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.logout-btn:hover {
    color: var(--accent);
}

/* Main Content Styles */
.main-content {
    display: flex;
    flex: 1;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--light);
    padding: 20px;
    border-right: 1px solid var(--light-gray);
}

.sidebar-menu {
    list-style: none;
    margin-top: 20px;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--dark);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: var(--primary);
    color: white;
}

.sidebar-menu i {
    font-size: 20px;
}

/* Content Area */
.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.page-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.card-1 .card-icon {
    background: rgba(76, 217, 100, 0.2);
    color: var(--like);
}

.card-2 .card-icon {
    background: rgba(253, 45, 107, 0.2);
    color: var(--nope);
}

.card-3 .card-icon {
    background: rgba(44, 156, 255, 0.2);
    color: var(--super-like);
}

.card-info h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.card-info p {
    color: var(--gray);
    font-size: 14px;
}

/* Members Grid */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.member-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    cursor: pointer;
}

.member-card:hover {
    transform: translateY(-5px);
}

.member-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.member-card:hover .member-image img {
    transform: scale(1.05);
}

.member-info {
    padding: 15px;
}

.member-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.member-age {
    color: var(--gray);
    font-weight: 400;
}

.member-distance {
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
    font-size: 14px;
}

.member-bio {
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--gray);
    font-size: 14px;
}

.member-actions {
    display: flex;
    gap: 10px;
}

.member-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
}

.btn-like {
    background: var(--like);
    color: white;
}

.btn-nope {
    background: var(--nope);
    color: white;
}

/* Footer Styles */
footer {
    background: var(--dark);
    color: white;
    padding: 30px;
    display: flex;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary);
}

.copyright {
    text-align: center;
    padding: 20px;
    background: #1a1a1a;
    color: #ddd;
    font-size: 14px;
}

/* Landing Page */
.landing-container {
    text-align: center;
    padding: 40px;
}

.landing-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 40px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.landing-hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.landing-hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.btn {
    padding: 15px 30px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-facebook {
    background: var(--facebook);
    color: white;
}

.btn-google {
    background: var(--google);
    color: white;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.feature {
    padding: 30px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.feature i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.testimonials {
    margin: 50px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.testimonial {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Auth Pages */
.auth-container {
    display: flex;
    min-height: 600px;
}

.auth-form {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-image {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-image img {
    max-width: 100%;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 16px;
}

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

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox input {
    width: auto;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--light-gray);
    z-index: 1;
}

.auth-divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    z-index: 2;
    color: var(--gray);
}

.social-login {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.social-login .btn {
    flex: 1;
    justify-content: center;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    footer {
        flex-direction: column;
        gap: 30px;
    }
    
    .auth-buttons {
        flex-direction: column;
    }
    
    .auth-container {
        flex-direction: column;
    }
    
    .auth-image {
        display: none;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .social-login {
        flex-direction: column;
    }
}



/* Discover Page Styles */
.discover-container {
    display: flex;
    gap: 30px;
}

.discover-filters {
    width: 250px;
    background: var(--light);
    padding: 20px;
    border-radius: 15px;
    height: fit-content;
}

.discover-filters h3 {
    margin-bottom: 20px;
    color: var(--dark);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
}

.range-slider {
    margin-top: 10px;
}

.range-slider input {
    width: 100%;
    margin: 10px 0;
}

.range-values {
    text-align: center;
    font-weight: 600;
    color: var(--primary);
}

.discover-profiles {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.discover-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    position: relative;
}

.discover-card:hover {
    transform: translateY(-5px);
}

.discover-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.discover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.discover-card:hover .discover-overlay {
    opacity: 1;
}

.discover-actions {
    display: flex;
    gap: 15px;
}

.btn-dislike, .btn-like {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-dislike {
    background: white;
    color: var(--nope);
}

.btn-like {
    background: var(--like);
    color: white;
}

.btn-dislike:hover, .btn-like:hover {
    transform: scale(1.1);
}

.discover-info {
    padding: 15px;
}

.discover-info h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.discover-info h3 span {
    color: var(--gray);
    font-weight: 400;
}

.location {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.bio {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.4;
}

.discover-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.interest-tag {
    background: rgba(253, 45, 107, 0.1);
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
    color: var(--light-gray);
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

/* Messages Page Styles */
.messages-container {
    display: flex;
    height: 600px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.conversations-list {
    width: 350px;
    border-right: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
}

.conversations-header {
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversations-search {
    padding: 15px 20px;
    border-bottom: 1px solid var(--light-gray);
}

.conversations-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 20px;
}

.conversations {
    flex: 1;
    overflow-y: auto;
}

.conversation {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    transition: background 0.3s;
}

.conversation:hover, .conversation.active {
    background: var(--light);
}

.conversation-avatar {
    position: relative;
    margin-right: 15px;
}

.conversation-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.conversation-info {
    flex: 1;
}

.conversation-info h4 {
    margin-bottom: 5px;
    font-size: 16px;
}

.last-message {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-time {
    color: var(--gray);
    font-size: 12px;
}

.empty-conversations {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-conversations i {
    font-size: 40px;
    margin-bottom: 15px;
}

.conversation-view {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.conversation-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-status {
    color: var(--success);
    font-size: 14px;
}

.conversation-actions {
    display: flex;
    gap: 10px;
}

.conversation-actions .btn {
    padding: 8px 12px;
    font-size: 14px;
}

.messages-list {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: 70%;
}

.message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.received {
    align-self: flex-start;
}

.message-content {
    background: var(--light);
    padding: 12px 15px;
    border-radius: 18px;
    position: relative;
}

.message.sent .message-content {
    background: var(--primary);
    color: white;
}

.message-time {
    font-size: 11px;
    margin-top: 5px;
    opacity: 0.7;
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.message-input {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
}

.input-container {
    display: flex;
    gap: 10px;
}

.input-container input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 25px;
}

.no-conversation-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray);
    text-align: center;
}

.no-conversation-selected i {
    font-size: 60px;
    margin-bottom: 20px;
    color: var(--light-gray);
}

/* Matches Page Styles */
.matches-container {
    padding: 20px 0;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.match-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.match-card:hover {
    transform: translateY(-5px);
}

.match-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.match-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.match-card:hover .match-overlay {
    opacity: 1;
}

.match-actions {
    display: flex;
    gap: 10px;
}

.match-actions .btn {
    padding: 8px 12px;
    font-size: 14px;
}

.match-info {
    padding: 15px;
}

.match-info h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.match-info h3 span {
    color: var(--gray);
    font-weight: 400;
}

.match-bio {
    color: var(--gray);
    margin-bottom: 10px;
    line-height: 1.4;
    font-size: 14px;
}

.match-date {
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}

/* Settings Page Styles */
.settings-container {
    display: flex;
    gap: 30px;
}

.settings-tabs {
    width: 200px;
    background: var(--light);
    border-radius: 15px;
    padding: 20px 0;
    height: fit-content;
}

.tab-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s;
    color: var(--dark);
    font-weight: 600;
}

.tab-btn:hover, .tab-btn.active {
    background: var(--primary);
    color: white;
}

.settings-content {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.subscription-status {
    background: var(--light);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.subscription-status h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.payment-methods {
    margin-bottom: 30px;
}

.payment-cards {
    margin-bottom: 20px;
}

.payment-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    margin-bottom: 10px;
}

.payment-card i {
    font-size: 24px;
    color: var(--gray);
}

.payment-card span {
    flex: 1;
    font-weight: 600;
}

/* Upload Page Styles */
.upload-container {
    padding: 20px 0;
}

.upload-box {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.upload-area {
    border: 2px dashed var(--light-gray);
    border-radius: 15px;
    padding: 40px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary);
}

.upload-area i {
    font-size: 48px;
    color: var(--light-gray);
    margin-bottom: 15px;
}

.upload-area h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.upload-area p {
    color: var(--gray);
    margin-bottom: 15px;
}

.upload-note {
    font-size: 14px;
    margin-top: 20px;
    color: var(--gray);
}

.preview-container {
    margin-top: 30px;
}

.image-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.image-preview {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.image-preview img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.remove-preview {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: none;
    background: var(--nope);
    color: white;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-full {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.upload-full i {
    font-size: 48px;
    color: var(--success);
    margin-bottom: 15px;
}

.upload-full h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.upload-full p {
    color: var(--gray);
    margin-bottom: 20px;
}

.current-photos {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.current-photos h3 {
    margin-bottom: 20px;
    color: var(--dark);
}

.empty-photos {
    text-align: center;
    padding: 40px;
    color: var(--gray);
}

.empty-photos i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--light-gray);
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.photo-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.photo-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.primary-badge {
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.photo-actions .btn {
    padding: 5px 10px;
    font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .discover-container {
        flex-direction: column;
    }
    
    .discover-filters {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .messages-container {
        flex-direction: column;
        height: auto;
    }
    
    .conversations-list {
        width: 100%;
        height: 300px;
    }
    
    .conversation-view {
        height: 400px;
    }
    
    .settings-container {
        flex-direction: column;
    }
    
    .settings-tabs {
        width: 100%;
        display: flex;
        overflow-x: auto;
    }
    
    .tab-btn {
        white-space: nowrap;
    }
    
    .matches-grid {
        grid-template-columns: 1fr;
    }
}



/* Ensure images scale properly */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Profile image styles */
.profile-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Background image styles */
.hero-bg {
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Lazy loading */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}


/* Posts Page Styles */
.posts-container {
    max-width: 800px;
    margin: 0 auto;
}

.create-post {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.post-form textarea {
    width: 100%;
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    padding: 15px;
    resize: vertical;
    font-family: inherit;
}

.post {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author h4 {
    margin-bottom: 2px;
}

.post-time {
    color: var(--gray);
    font-size: 12px;
}

.post-content {
    margin-bottom: 15px;
}

.post-actions {
    display: flex;
    gap: 20px;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    padding: 10px 0;
    margin-bottom: 15px;
}

.post-action {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.post-action:hover {
    color: var(--primary);
}

.post-action.liked {
    color: var(--like);
}

.post-comments {
    display: none;
}

.post-comments.active {
    display: block;
}

.comments-list {
    margin-bottom: 15px;
}

.comment {
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    display: flex;
    gap: 10px;
}

.comment-author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-author h5 {
    margin-bottom: 2px;
}

.comment-author p {
    margin-bottom: 2px;
    color: var(--dark);
}

.comment-time {
    color: var(--gray);
    font-size: 11px;
}

.add-comment {
    margin-top: 15px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 20px;
}

/* Likes Page Styles */
.likes-container {
    padding: 20px 0;
}

.likes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.like-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.like-image {
    height: 200px;
    overflow: hidden;
}

.like-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.like-info {
    padding: 15px;
}

.like-info h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.like-info h3 span {
    color: var(--gray);
    font-weight: 400;
}

.like-bio {
    color: var(--gray);
    margin-bottom: 10px;
    line-height: 1.4;
}

.like-time {
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.like-actions {
    display: flex;
    gap: 10px;
}

.like-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
}


/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Navigation styles */
.navbar {
    background-color: #ff6b6b;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hamburger menu - hidden by default */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    border-radius: 3px;
    transition: 0.3s;
}

/* Mobile responsive styles */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 50px;
        flex-direction: column;
        background-color: #ff6b6b;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 1rem 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        padding: 1rem;
        border-radius: 0;
    }
    
    .nav-link:hover {
        background-color: #ff5252;
    }
    
    /* Animate hamburger to X when active */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

.error-box {
    background: #ffe6e6;
    border: 1px solid #ff4d4d;
    color: #b30000;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}


.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 350px;
    text-align: center;
    position: relative;
}

.modal-content p {
    margin: 0;
    font-size: 16px;
    color: #d10000;
}

#closeModal {
    position: absolute;
    top: 8px; right: 12px;
    font-size: 20px;
    cursor: pointer;
}

/* Modal overlay */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* semi-transparent background */
    animation: fadeIn 0.3s ease-in-out;
}

/* Modal content box */
.modal-content {
    background-color: #fff;
    margin: 10% auto; /* 10% from top, centered */
    padding: 20px 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
    animation: slideDown 0.3s ease-in-out;
}

/* Close button */
.modal-content .close {
    color: #aaa;
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-content .close:hover {
    color: #f3277d; /* your primary color */
}

/* Modal message text */
#modalMessage {
    font-size: 16px;
    color: #333;
    margin-top: 10px;
}

/* Animations */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideDown {
    from {transform: translateY(-30px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}
