:root {
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --background-color: #f5f5f5;
    --text-color: #333;
    --card-background: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazir', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
}

h1 {
    color: var(--primary-color);
    font-size: 2rem;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #45a049;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.item-card {
    background-color: var(--card-background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.item-card:hover {
    transform: translateY(-5px);
}

.item-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.item-card h3 {
    padding: 15px;
    font-size: 1.2rem;
}

.item-card p {
    padding: 0 15px;
    color: #666;
    margin-bottom: 15px;
}

.item-meta {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--card-background);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.8rem;
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.add-btn {
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.add-btn i {
    margin: 0;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.item-details {
    background: var(--card-background);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 80px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.item-image {
    margin-bottom: 20px;
}

.item-image img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
}

.item-info .description {
    margin-bottom: 20px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.meta-info {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.meta-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-info i {
    color: var(--primary-color);
    width: 20px;
}

.meta-info span {
    font-weight: bold;
    margin-right: 5px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state p {
    margin-bottom: 20px;
    color: #666;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.status.available {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status.taken {
    background-color: #ffebee;
    color: #c62828;
}

.item-actions {
    display: flex;
    gap: 8px;
}

.btn-danger {
    background-color: #f44336;
}

.btn-danger:hover {
    background-color: #d32f2f;
}

.profile-container {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 80px;
}

.profile-info {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.label {
    color: #666;
    font-size: 0.9rem;
}

.value {
    font-weight: 500;
}

.status.verified {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.status.unverified {
    background-color: #fff3e0;
    color: #e65100;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.profile-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.alert {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.btn-secondary {
    background-color: #2196F3;
}

.btn-secondary:hover {
    background-color: #1976D2;
}

.current-image {
    margin-bottom: 10px;
    text-align: center;
}

.current-image img {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 5px;
}

.current-image span {
    display: block;
    color: #666;
    font-size: 0.9rem;
} 