* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.main-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    color: #e74c3c;
    font-size: 2rem;
}

.top-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-nav a {
    text-decoration: none;
    color: #333;
    padding: 8px 16px;
    transition: color 0.3s;
}

.top-nav a:hover {
    color: #e74c3c;
}

.btn-register, .btn-login {
    background-color: #e74c3c;
    color: white !important;
    border-radius: 5px;
}

.btn-register:hover, .btn-login:hover {
    background-color: #c0392b;
}

.home-main {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero {
    text-align: center;
    padding: 40px 20px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #7f8c8d;
}

.btn-cta {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.btn-cta:hover {
    background-color: #c0392b;
}

.main-footer {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-nav {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #e74c3c;
}

.main-footer p {
    text-align: center;
    color: #95a5a6;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
}

.btn-continue, .btn-submit {
    background-color: #e74c3c;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-continue:hover, .btn-submit:hover {
    background-color: #c0392b;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.user-info {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 12pt;
    color: #2c3e50;
}

.filter-box {
    background-color: white;
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.filter-box h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.profiles-grid {
    max-width: 1200px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.profile-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-decoration: none;
    color: #333;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.profile-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 200px;
    background-color: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #95a5a6;
    font-size: 1.2rem;
}

.profile-info {
    padding: 15px;
}

.profile-info h3 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.profile-info p {
    color: #7f8c8d;
}

.profile-detail {
    max-width: 900px;
    margin: 40px auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.profile-basics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.basics-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
}

.basic-info {
    margin-bottom: 10px;
}

.basic-info strong {
    color: #2c3e50;
}

.profile-section {
    margin: 30px 0;
}

.profile-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.photo-box {
    position: relative;
}

.photo-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.no-photo {
    width: 200px;
    height: 200px;
    background-color: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #95a5a6;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.primary-checkbox {
    margin-top: 10px;
    text-align: center;
}

.message-box {
    margin-top: 30px;
}

.message-box textarea {
    width: 100%;
    min-height: 150px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.inbox-container {
    max-width: 900px;
    margin: 40px auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
}

.message-thread {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.message-item {
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.message-sender {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.message-time {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.forgot-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #3498db;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}
