body{
margin:0;
font-family:sans-serif;
background:linear-gradient(135deg,#19c3d6,#0f766e);
min-height:100vh;
direction:rtl;
}

/* ===== HEADER ===== */

.header{
display:flex;
justify-content:space-between;
align-items:center;
padding:15px 30px;
background:#f5f7f8;
box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

.logo a{
font-size:22px;
font-weight:bold;
text-decoration:none;
color:#333;
}

.nav-buttons{
display:flex;
gap:10px;
}

.nav-buttons a{
text-decoration:none;
padding:8px 16px;
border-radius:6px;
font-size:14px;
transition:0.3s;
}

/* ===== HEADER BUTTONS ===== */

.header-btn{
padding:8px 16px;
border-radius:8px;
text-decoration:none;
color:white;
margin-left:5px;
transition:all 0.3s ease;
background:#3498db;
}

.header-btn:hover{
background:#2980b9;
}

.logout{
background:#e74c3c;
}

.logout:hover{
background:#c0392b;
}


/* ===== ADS ===== */

.ads-container{
display:flex;
flex-wrap:wrap;
gap:20px;
justify-content:center;
}

.ad-card{
width:300px;
background:white;
border-radius:12px;
padding:20px;
box-shadow:0 4px 15px rgba(0,0,0,0.1);
transition:0.3s;
margin-bottom:20px;
}

.ad-card:hover{
transform:translateY(-5px);
}

.ad-card img{
width:100%;
height:200px;
object-fit:cover;
border-radius:8px;
margin-top:10px;
}

.price{
font-weight:bold;
color:#4012e6;
}
/* ===== BUTTONS ===== */

.view-btn,
.edit-btn,
.delete-btn{
display:inline-block;
padding:8px 16px;
margin:5px;
border-radius:8px;
color:white;
text-decoration:none;
font-size:14px;
transition:all 0.3s ease;
}

.view-btn{
background:#2ecc71;
}

.view-btn:hover{
background:#27ae60;
transform:scale(1.08);
}

.edit-btn{
background:#3498db;
}

.edit-btn:hover{
background:#2980b9;
transform:scale(1.08);
}

.delete-btn{
background:#e74c3c;
}

.delete-btn:hover{
background:#c0392b;
transform:scale(1.08);
}

/* ===== CREATE BUTTON ===== */

.create-btn{
background:#354ee0;
color:white;
padding:10px 20px;
border-radius:8px;
font-weight:bold;
text-decoration:none;
}

.create-btn:hover{
background:#0628bd;
transform:scale(1.05);
}

/* ===== SEARCH ===== */

.search-box{
display:flex;
justify-content:center;
margin:20px 0;
}

.search-box input{
width:280px;
padding:10px;
border-radius:8px;
border:1px solid #ccc;
font-size:14px;
transition:all 0.3s ease;
}

.search-box input:hover{
width:330px;
box-shadow:0 0 10px rgba(0,0,0,0.2);
}

.search-box input:focus{
width:350px;
outline:none;
box-shadow:0 0 12px rgba(0,0,0,0.3);
}

.search-btn{
padding:10px 20px;
border:none;
border-radius:10px;
background:#2ecc71;
color:white;
font-size:14px;
cursor:pointer;
transition:all 0.3s ease;
}

.search-btn:hover{
transform:scale(1.1);
background:#27ae60;
}

/* ===== LOGIN & SIGNUP ===== */

.login-container,
.signup-container{
width:350px;
margin:80px auto;
padding:30px;
background:#f4f6f7;
border-radius:10px;
box-shadow:0 0 10px rgba(0,0,0,0.1);
text-align:right;
}

.login-container input,
.signup-container input{
width:100%;
padding:10px;
margin-bottom:15px;
border:1px solid #ccc;
border-radius:6px;
}

.login-container button,
.signup-container button{
width:100%;
padding:12px;
background:#4CAF50;
color:white;
border:none;
border-radius:6px;
cursor:pointer;
font-size:16px;
}

.login-container button:hover,
.signup-container button:hover{
background:#45a049;
}
/* ===== IMAGE SLIDER ===== */

.image-slider{
max-width:600px;
margin:auto;
}

.main-image{
width:100%;
height:400px;
object-fit:cover;
border-radius:12px;
margin-bottom:10px;
}

.thumbnails{
display:flex;
gap:10px;
overflow-x:auto;
}

.thumb{
width:90px;
height:70px;
object-fit:cover;
border-radius:8px;
cursor:pointer;
transition:0.3s;
}

.thumb:hover{
transform:scale(1.1);
}

/* ===== MODAL ===== */

.modal{
display:none;
position:fixed;
z-index:1000;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(26,165,230,0.6);
justify-content:center;
align-items:center;
}

.modal-content{
background:white;
padding:30px;
border-radius:12px;
text-align:center;
width:320px;
}

/* ===== AD BUTTON ===== */

.ad-btn{
display:inline-block;
margin-top:10px;
background:#28a745;
color:white;
padding:8px 14px;
border-radius:8px;
text-decoration:none;
transition:0.3s;
}

.ad-btn:hover{
background:#218838;
}
/* دکمه های هدر */

.header-btn{
display:inline-block;
padding:8px 16px;
border-radius:8px;
text-decoration:none;
font-size:14px;
color:#fff !important;
transition:all 0.3s ease;
}

/* آگهی های من */
.my-ads-btn{
background:#34495e;
color:#fff !important;
}

.my-ads-btn:hover{
background:#2c3e50;
transform:scale(1.08)
}

/* پروفایل */
.profile-btn{
background:#9b59b6;
color:#fff !important;
}

.profile-btn:hover{
background:#8e44ad;
transform:scale(1.08)
}

/* خروج */
.logout-btn{
background:#e74c3c;
color:#fff !important;
}

.logout-btn:hover{
background:#c0392b;
transform:scale(1.08)
}
.ad-detail{
max-width:900px;
margin:40px auto;
padding:20px;
}

.ad-actions{
margin-top:20px;
display:flex;
gap:10px;
}

.ad-actions a{
padding:10px 18px;
border-radius:8px;
text-decoration:none;
color:white;
font-size:14px;
}


/* دکمه ها */

.ad-actions{
margin-top:20px;
display:flex;
gap:10px;
}

/* استایل مشترک دکمه ها */

.ad-actions a{
padding:10px 18px;
border-radius:8px;
text-decoration:none;
color:white;
font-size:14px;
display:inline-block;

transition: all 0.3s ease;
}

/* دکمه برگشت */

.back-btn{
background:#1364dd;
}

/* دکمه ویرایش */

.edit-btn{
background:#0fe72c;
}

/* دکمه حذف */

.delete-btn{
background:#ff6b6b;
}

/* افکت Hover */

.ad-actions a:hover{
transform: translateY(-3px);
opacity:0.9;
box-shadow:0 6px 15px rgba(0,0,0,0.2);
}
body{
margin:0;
font-family:tahoma;
background:linear-gradient(135deg,#2bb3c0,#1f8fa0);
}

/* header */

.site-header{
display:flex;
justify-content:space-between;
align-items:center;
padding:15px 40px;
background:rgba(255,255,255,0.1);
backdrop-filter:blur(8px);
}

.logo{
font-size:22px;
font-weight:bold;
color:white;
}

.header-buttons{
display:flex;
gap:10px;
}

/* buttons */

.btn{
padding:10px 18px;
border-radius:10px;
text-decoration:none;
color:white;
font-size:14px;
display:inline-block;
transition:all 0.3s ease;
}

.header-btn{
background:#3498db;
}

.create-btn{
background:#2ecc71;
}

.my-btn{
background:#9b59b6;
}

/* hover */

.btn:hover{
transform:translateY(-3px) scale(1.05);
box-shadow:0 8px 18px rgba(0,0,0,0.3);
}

/* profile */

.profile-container{
max-width:900px;
margin:40px auto;
padding:0 15px;
}

.profile-card{
background:white;
border-radius:20px;
padding:25px;
box-shadow:0 10px 30px rgba(0,0,0,0.2);
}

.profile-header{
display:flex;
align-items:center;
gap:20px;
}

.profile-img{
width:90px;
height:90px;
border-radius:50%;
object-fit:cover;
border:4px solid #19c3d6;
transition:0.3s;
}

.profile-img:hover{
transform:scale(1.05);
}

.profile-info h2{
margin:0;
font-size:26px;
}

.email{
color:#666;
margin:5px 0;
}

.ad-count{
color:#888;
font-size:14px;
}

/* ads */

.ads-title{
color:white;
margin:30px 0 15px;
}

.ads-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
gap:20px;
}

/* card */

.ad-card{
background:white;
border-radius:15px;
overflow:hidden;
box-shadow:0 5px 15px rgba(0,0,0,0.15);
transition:all 0.3s ease;
}

.ad-card:hover{
transform:translateY(-6px);
box-shadow:0 12px 25px rgba(0,0,0,0.25);
}

.ad-image{
width:100%;
height:180px;
object-fit:cover;
}

.ad-info{
padding:15px;
text-align:center;
}

.price{
color:#05036b;
font-weight:bold;
margin:8px 0;
}

/* card buttons */

.card-buttons{
display:flex;
gap:5px;
margin-top:10px;
}

.view-btn{
background:#3498db;
flex:1;
}

.edit-btn{
background:#2bec25;
flex:1;
}

.delete-btn{
background:#e74c3c;
flex:1;
}

.no-ad{
color:white;
font-size:16px;
text-align:center;
margin-top:30px;
}
/* ورود */

.login-btn{

background:#3498db;
color:white;

}

.login-btn:hover{

background:#2980b9;
transform:translateY(-2px);
box-shadow:0 5px 15px rgba(0,0,0,0.2);

}

/* ثبت نام */

.register-btn{

background:#2ecc71;
color:white;

}

.register-btn:hover{

background:#27ae60;
transform:translateY(-2px);
box-shadow:0 5px 15px rgba(0,0,0,0.2);

}
/* بخش تماس */

.contact-section{

margin-top:30px;
padding:20px;

background:white;

border-radius:12px;

box-shadow:0 5px 20px rgba(0,0,0,0.1);

}

/* شماره تماس */

.phone-box{

font-size:18px;
font-weight:bold;

margin-bottom:15px;

}

/* دکمه ها */

.contact-buttons{

display:flex;
gap:10px;

}

/* دکمه پایه */

.contact-btn{

flex:1;

text-align:center;

padding:12px;

border-radius:10px;

text-decoration:none;

font-weight:bold;

color:white;

transition:0.3s;

}

/* دکمه تماس */

.call-btn{

background:linear-gradient(45deg,#27ae60,#2ecc71);

}

.call-btn:hover{

transform:translateY(-3px);

box-shadow:0 8px 20px rgba(0,0,0,0.2);

}

/* دکمه چت */

.chat-btn{

background:linear-gradient(45deg,#25b0d3,#1d94da);

}

.chat-btn:hover{

transform:translateY(-3px);

box-shadow:0 8px 20px rgba(0,0,0,0.2);

}
.chat-box{
padding:10px;
border-bottom:1px solid #ddd;
}

.unread-badge{
background:red;
color:white;
padding:3px 8px;
border-radius:50%;
font-size:12px;
margin-right:10px;
}
.chat-button{
display:inline-block;
background:#d357b8;
color:white;
padding:10px 18px;
border-radius:8px;
text-decoration:none;
font-weight:bold;
margin-top:15px;
transition:0.3s;
}

.chat-button:hover{
background:#d526db;
}
.contact-buttons{
display:flex;
gap:10px;
margin-top:15px;
}

.nav-buttons{
display:flex;
gap:10px;
align-items:center;
}
.nav-buttons{
display:flex;
gap:10px;
align-items:center;
}
/* دکمه های هدر */

.nav-buttons{
display:flex;
align-items:center;
gap:10px;
}

/* دکمه پیام */

.msg-btn{
position:relative;
background:#3bc6f0;
padding:8px 15px;
border-radius:20px;
text-decoration:none;
color:#333;
font-size:14px;
box-shadow:0 2px 6px rgba(0,0,0,0.1);
}

.msg-btn:hover{
background:#0492e4;
font-weight:bold;
transition:0.9s;

}

/* نوتیفیکیشن پیام */

#msg-badge{
position:absolute;
top:-5px;
right:-5px;
background:red;
color:white;
font-size:10px;
padding:2px 6px;
border-radius:10px;
min-width:16px;
text-align:center;
}
/* موج فوتر */

.footer-wave svg{
display:block;
width:100%;
margin-bottom:-5px;
}

/* فوتر */

.baam-footer{
background: linear-gradient(135deg,#0f172a,#1e3a8a,#06b6d4);
color:white;
padding:60px 0 30px 0;
}

.footer-container{
max-width:1200px;
margin:auto;
display:flex;
flex-wrap:wrap;
justify-content:space-between;
gap:40px;
padding:0 25px;
}

.footer-box{
flex:1;
min-width:220px;
}

.footer-box h3{
font-size:24px;
color:#38bdf8;
margin-bottom:10px;
}

.footer-box h4{
color:#7dd3fc;
margin-bottom:10px;
}

.footer-box p{
color:#e2e8f0;
line-height:1.7;
}

/* لینک ها */

.footer-box ul{
list-style:none;
padding:0;
}

.footer-box ul li{
margin:8px 0;
}

.footer-box ul li a{
text-decoration:none;
color:#e2e8f0;
position:relative;
transition:0.3s;
}

/* انیمیشن لینک */

.footer-box ul li a::after{
content:"";
position:absolute;
right:0;
bottom:-3px;
width:0;
height:2px;
background:#38bdf8;
transition:0.3s;
}

.footer-box ul li a:hover::after{
width:100%;
}

.footer-box ul li a:hover{
color:#38bdf8;
}

/* آیکون شبکه اجتماعی */

.social-icons{
margin-top:15px;
}

.social-icons a{
font-size:22px;
margin-left:12px;
text-decoration:none;
transition:0.3s;
}

.social-icons a:hover{
transform:scale(1.3);
}

/* پایین فوتر */

.footer-bottom{
text-align:center;
margin-top:40px;
padding-top:15px;
border-top:1px solid rgba(255,255,255,0.2);
color:#cbd5f5;
}

/* دکمه بازگشت بالا */

#topBtn{
position:fixed;
bottom:30px;
left:30px;
background:#06b6d4;
color:white;
border:none;
padding:12px 16px;
border-radius:50%;
font-size:18px;
cursor:pointer;
display:none;
box-shadow:0 5px 15px rgba(0,0,0,0.3);
}
.social-icons a{
font-size:24px;
margin-left:12px;
background:rgba(255,255,255,0.1);
padding:10px;
border-radius:50%;
transition:0.3s;
}

.social-icons a:hover{
background:#06b6d4;
transform:scale(1.2);
}
.btn-message{
    background: #17a2b8;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}

.btn-message:hover{
    background: #138496;
} 