/* ===================================================================
RESET & FONTS
=================================================================== */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

body {
font-family: 'Roboto', sans-serif;
color: #1c1b1f;
background-color: #f9f9f9;
}


/* ===================================================================
NAVIGATION STYLES
=================================================================== */
.top-nav {
display: flex;
justify-content: space-between;
padding: 1rem 2rem;
background: #ffffff;
border-bottom: 1px solid #e0e0e0;
align-items: center;
}

.nav-right a,
.nav-right button {
margin-left: 1rem;
text-decoration: none;
color: #333;
}

/* ===================================================================
HERO SECTION STYLES
=================================================================== */
.main-hero {
text-align: center;
padding: 4rem 2rem;
}

.hero-content h2 {
font-size: 2.5rem;
font-weight: bold;
}

.hero-content p {
color: #666;
margin-top: 0.5rem;
}

.search-box {
margin-top: 1.5rem;
padding: 0.5rem;
border-radius: 8px;
border: 1px solid #ccc;
width: 250px;
}


/* ===================================================================
PLACEHOLDER IMAGE STYLES
=================================================================== */
.image-placeholder {
margin: 4rem auto;
height: 200px;
background: #ddd;
border-radius: 12px;
display: flex;
justify-content: center;
align-items: center;
font-size: 48px;
color: #999;
max-width: 600px;
}

/* ===================================================================
FOOTER STYLES
=================================================================== */
.footer {
background-color: #e9e9e9;
padding: 2rem;
color: #333;
}

.footer-resources h4 {
font-weight: 600;
margin-bottom: 0.75rem;
}

.footer-resources ul {
list-style: none;
padding-left: 0;
}

.footer-resources ul li {
margin-bottom: 0.5rem;
font-size: 0.9rem;
color: #555;
}


/* ===================================================================
MODAL STYLES
=================================================================== */

.modal-overlay.show {
display: block;
background: rgba(0, 0, 0, 0.5);
}

.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.4);
display: none;
z-index: 999;
}

.modal {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0.95);
background: #fff;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
width: 300px;
max-width: 90%;
z-index: 1000;
opacity: 0;
pointer-events: none;
transition: all 0.3s ease;
}

.modal.show {
transform: translate(-50%, -50%) scale(1);
opacity: 1;
pointer-events: auto;
}

.modal-content {
display: flex;
flex-direction: column;
gap: 1rem;
}

.modal-content input {
padding: 0.6rem;
border-radius: 8px;
border: 1px solid #ccc;
}


/* ===================================================================
SEARCH PAGE STYLES
=================================================================== */

.search-page {
display: flex;
padding: 2rem;
gap: 2rem;
}


/* ===================================================================
FILTER BOX STYLES
=================================================================== */

.filter-box {
background: #fff;
border: 1px solid #ddd;
padding: 1rem;
border-radius: 12px;
width: 250px;
height: fit-content;
}

.filter-box h3 {
margin-bottom: 1rem;
}

.filter-box label {
display: block;
margin-bottom: 0.75rem;
font-size: 0.9rem;
}


/* ===================================================================
MATERIAL SEARCH STYLES
=================================================================== */
.material-search {
display: flex;
gap: 0.5rem;
align-items: center;
padding: 1rem;
background: #fff;
border-radius: 12px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 600px;
margin: 2rem auto;
}

.material-search input[type="text"] {
flex: 1;
padding: 12px 16px;
border: 1px solid #ccc;
border-radius: 12px;
font-size: 1rem;
outline: none;
transition: border 0.2s ease;
}

.material-search input[type="text"]:focus {
border-color: #6200ee;
box-shadow: 0 0 0 2px rgba(98, 0, 238, 0.1);
}

.material-search button {
padding: 12px 20px;
background-color: #6200ee;
color: white;
border: none;
border-radius: 12px;
font-size: 1rem;
cursor: pointer;
font-weight: 500;
transition: background-color 0.2s ease;
}

.material-search button:hover {
background-color: #3700b3;
}

/* ===================================================================
FILLED BUTTON STYLES
=================================================================== */

.btn-filled {
background-color: #4CAF50;
color: white;
border: none;
padding: 10px 20px;
border-radius: 8px;
font-size: 1rem;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s ease;
}

.btn-filled:hover {
background-color: #45a049;
}

.btn-text {
background: none;
border: 1px solid #ccc;
padding: 0.4rem 1rem;
border-radius: 6px;
cursor: pointer;
}


/* ===================================================================
ABOUT SECTION STYLES
=================================================================== */

.about-container {
padding: 50px 20px;
max-width: 1000px;
margin: 0 auto;
text-align: center;
}

.about-image {
width: 300px;
height: 300px;
background-color: #eee;
margin: 30px auto;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
color: #777;
border-radius: 12px;
}

.about-text {
font-size: 1.1rem;
color: #555;
margin-top: 20px;
line-height: 1.6;
}


/* ===================================================================
DASHBOARD STYLES
=================================================================== */

.dashboard-grid {
margin-top: 2rem;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 1rem;
width: 100%;
max-width: 800px;
}

.dashboard-button {
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
background: #f0f0f0;
border-radius: 12px;
text-decoration: none;
font-size: 1rem;
color: #333;
font-weight: bold;
transition: background 0.3s, transform 0.2s;
text-align: center;
}

.dashboard-button:hover {
background: #d1e0ff;
transform: translateY(-3px);
}


/* ===================================================================
EDIT FORM STYLES
=================================================================== */
.edit-form {
max-width: 600px;
margin: 2rem auto;
padding: 2rem;
background: #f9f9f9;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.edit-form input, .edit-form textarea, .edit-form select {
width: 100%;
padding: 10px;
margin-bottom: 1rem;
border: 1px solid #ccc;
border-radius: 8px;
}

.edit-form button {
background-color: #4CAF50;
color: white;
border: none;
padding: 12px 20px;
border-radius: 8px;
cursor: pointer;
font-weight: bold;
font-size: 1rem;
}


/* ===================================================================
LISTINGS CONTAINER STYLES
=================================================================== */

.listings-container {
margin: 2rem auto;
padding: 1rem;
max-width: 1000px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
}

.listing-card {
background: #f9f9f9;
border-radius: 12px;
padding: 1.5rem;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.2s;
position: relative;
}

.listing-card:hover {
transform: translateY(-5px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.listing-card-link {
text-decoration: none;
color: inherit;
display: block;
}

.listing-title {
font-size: 1.2rem;
font-weight: bold;
margin-bottom: 0.5rem;
}

.listing-description {
font-size: 0.95rem;
margin-bottom: 1rem;
}

.listing-meta {
font-size: 0.85rem;
color: #555;
}

.button-row {
margin-top: 1rem;
display: flex;
justify-content: space-between;
}

.btn-edit, .btn-delete {
padding: 8px 12px;
border: none;
border-radius: 8px;
cursor: pointer;
font-weight: bold;
font-size: 0.9rem;
}

.btn-edit {
background-color: #4CAF50;
color: white;
}

.btn-delete {
background-color: #F44336;
color: white;
}


/* ===================================================================
SEARCH FORM STYLES
=================================================================== */
.search-form {
display: flex;
flex-wrap: wrap;
gap: 1rem;
margin: 2rem;
}

.search-form input {
padding: 10px;
border: 1px solid #ccc;
border-radius: 8px;
flex: 1 1 200px;
}

.search-form button {
background-color: #4CAF50;
color: white;
border: none;
padding: 10px 20px;
border-radius: 8px;
cursor: pointer;
font-weight: bold;
}


/* ===================================================================
LISTING FORM STYLES
=================================================================== */
.listing-form {
max-width: 600px;
margin: 50px auto;
padding: 20px;
background: #f7f7f7;
border-radius: 10px;
}

.listing-form h2 {
text-align: center;
}

.listing-form input, .listing-form textarea, .listing-form select, .listing-form button {
width: 100%;
margin-bottom: 15px;
padding: 10px;
font-size: 1rem;
}

.listing-form button {
background: #007BFF;
color: white;
border: none;
cursor: pointer;
}

.listing-form button:hover {
background: #0056b3;
}
/* ===================================================================
PROFILE SECTION STYLES
=================================================================== */

.portfolio-gallery, .listings-gallery {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 1rem;
}

.portfolio-img, .listing-card {
border: 1px solid #ccc;
border-radius: 8px;
background-color: #fafafa;
}

.profile-container {
max-width: 600px;
margin: 2rem auto;
padding: 2rem;
background: #fff;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
position: relative;
text-align: center;
}

.edit-button {
position: absolute;
top: 1rem;
right: 1rem;
background-color: #4CAF50;
color: white;
padding: 10px 16px;
border-radius: 6px;
text-decoration: none;
font-weight: bold;
}

.profile-image {
width: 150px;
height: 150px;
border-radius: 50%;
background-color: #eee;
object-fit: cover;
margin-bottom: 1rem;
}

.profile-description {
margin-top: 1rem;
color: #555;
}

.placeholder {
display: flex;
align-items: center;
justify-content: center;
font-size: 0.9rem;
color: #888;
}


/* ===================================================================
PORTFOLIO GALLERY STYLES
=================================================================== */

.portfolio-item {
display: flex;
flex-direction: column;
align-items: center;
}

.portfolio-img {
width: 150px;
height: 150px;
object-fit: cover;
border-radius: 8px;
border: 1px solid #ccc;
}

.delete-btn {
margin-top: 8px;
background-color: #e74c3c;
color: white;
border: none;
padding: 6px 12px;
border-radius: 5px;
cursor: pointer;
}

.delete-btn:hover {
background-color: #c0392b;
}


/* ===================================================================
CHAT LAYOUT STYLES
=================================================================== */

.chat-layout {
display: flex;
max-width: 1000px;
margin: 2rem auto;
gap: 1rem;
}

.chat-sidebar {
width: 250px;
border-right: 1px solid #ccc;
padding-right: 1rem;
}

.chat-sidebar ul {
list-style: none;
padding: 0;
}

.chat-sidebar li {
margin-bottom: 10px;
}

.chat-sidebar a {
text-decoration: none;
color: #333;
}

.chat-sidebar a.active {
font-weight: bold;
color: #007BFF;
}

.message-container {
flex: 1;
background: #fff;
padding: 1rem;
border-radius: 8px;
box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

.message-thread {
max-height: 400px;
overflow-y: auto;
margin-bottom: 1rem;
}

.message {
padding: 10px;
margin: 8px 0;
border-radius: 6px;
}

.message.sent {
background-color: #e0f7ff;
text-align: right;
}

.message.received {
background-color: #f0f0f0;
text-align: left;
}

.message-form textarea {
width: 100%;
padding: 10px;
border-radius: 6px;
border: 1px solid #ccc;
resize: none;
}

.message-form button {
margin-top: 10px;
padding: 10px 20px;
border: none;
background: #007BFF;
color: white;
border-radius: 6px;
cursor: pointer;
}