/* صفحه ادمین */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    width: 100%;
    max-width: 400px;
}

.login-title {
    text-align: center;
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 30px;
}

.admin-panel {
    min-height: 100vh;
    padding: 20px;
    background: #f9f9f9;
    display: none;
}

.admin-form {
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 25px;
    margin-bottom: 30px;
}

.form-section-title {
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f1f1;
}

/* بخش آپلود تصاویر */
.image-upload-container {
    margin-bottom: 20px;
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.image-preview {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(220, 53, 69, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.upload-btn-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    cursor: pointer;
    margin-top: 10px;
}

.upload-btn-wrapper input[type=file] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.upload-btn {
    background: var(--gradient-btn);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* مدیریت آگهی‌ها در پنل ادمین */
.admin-cases-container {
    margin-top: 30px;
}

.admin-case-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.admin-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.admin-case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.admin-case-title {
    font-weight: 700;
    color: var(--primary-purple);
    margin: 0;
}

.admin-case-status {
    display: flex;
    gap: 10px;
}

.btn-reserve {
    background: #ffc107;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-reserve:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.btn-delete {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.admin-case-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.admin-case-detail {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 10px;
}

.admin-case-label {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.admin-case-value {
    color: #6c757d;
    font-size: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

.status-online {
    background: #4cd964;
    color: white;
}

.status-offline {
    background: #9e9e9e;
    color: white;
}

.status-reserved {
    background: #ffc107;
    color: #000;
}

.status-deleted {
    background: #dc3545;
    color: white;
}