body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.top-bar {
    background: #fff;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.left-buttons {
    display: flex;
    gap: 15px;
}

.nav-btn {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-bar input {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    width: 250px;
    outline: none;
}

.profile-nav {
    position: relative;
}

.profile-icon {
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    width: 150px;
    z-index: 1000;
}

.dropdown.show {
    display: block;
}

.dropdown a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
}

.main-content {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.profile-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eee;
}

.profile-interaction {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    flex-wrap: wrap;
}

.like-section {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
}

.btn-like {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0;
    color: #333;
}

.btn-dark {
    background: #333;
    color: white !important;
    text-decoration: none;
    padding: 0 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
}

.btn-report {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    padding: 0 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 40px;
    box-sizing: border-box;
}

.btn-admin {
    background: #27ae60;
    color: white !important;
    text-decoration: none;
    padding: 0 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    box-sizing: border-box;
    transition: background 0.2s;
}

.btn-admin:hover {
    background: #1e8449;
}

.info-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.info-item span {
    display: block;
    color: #888;
    font-size: 13px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.img-box {
    height: 180px;
    background: #f0f0f0;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    padding: 15px;
}

.price {
    color: #ff6b6b;
    font-weight: bold;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    margin: 100px auto;
    padding: 25px;
    border-radius: 12px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    font-size: 24px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}
body.dark {
    background-color: #121212;
    color: #eeeeee;
}

body.dark .top-bar {
    background-color: #1e1e1e;
}

body.dark .profile-card,
body.dark .product-card,
body.dark .modal-content {
    background-color: #1f1f1f;
    color: #eeeeee;
}

body.dark input,
body.dark button {
    background-color: #2a2a2a;
    color: #ffffff;
    border-color: #444;
}

body.dark a {
    color: #9ecfff;
}
.profile-interaction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.btn-theme {
    background-color: #222;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-theme:hover {
    background-color: #000;
    transform: translateY(-1px);
}