/* Import fonts */
@import url('fonts.css');

/* Import rental styles */
@import url('rental-styles.css');

/* Import font test styles */
@import url('font-test.css');

/* Import footer styles */
@import url('footer-styles.css');

/* Image Uploader Styles */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.upload-area:hover {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.upload-area.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    border-color: #dee2e6;
    background-color: #f8f9fa;
}

.upload-area.disabled:hover {
    border-color: #dee2e6;
    background-color: #f8f9fa;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upload-icon {
    font-size: 3rem;
    color: #6c757d;
}

.upload-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    color: #495057;
}

.upload-hint {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.image-preview-container {
    margin-top: 1rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.image-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: white;
}

.preview-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-preview-item:hover .image-overlay {
    opacity: 1;
}

.remove-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.image-info {
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.image-info small {
    color: #6c757d;
    font-size: 0.75rem;
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* Image Gallery Styles */
.image-gallery {
    width: 100%;
}

.main-image {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

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

.thumbnail-images {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail:hover {
    border-color: #007bff;
}

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

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    direction: rtl;
    font-family: 'Vazir', 'Vazir-FD-WOL', 'Tahoma', 'Arial', sans-serif;
    height: 100%;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Page layout */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.home-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    min-height: 0;
}

/* Desktop specific styles */
@media (min-width: 641px) {
    .page {
        min-height: 100vh;
    }
    
    .main-content {
        flex: 1;
        min-height: 0;
    }
}

/* Header styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.logo-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-name {
    font-size: 0.9rem;
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
}

.login-btn, .register-btn, .logout-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
        cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.login-btn {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.register-btn {
    background-color: white;
    color: #667eea;
}

.logout-btn {
    background-color: rgba(255,255,255,0.2);
    color: white;
}

.login-btn:hover, .register-btn:hover, .logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-actions {
    margin-top: 2rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 10px;
}

/* Search section */
.search-section {
    background: white;
    padding: 2rem 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

/* Placeholder styles for search input */
.search-input::placeholder {
    color: #adb5bd !important;
    opacity: 0.7;
}

.search-input::-webkit-input-placeholder {
    color: #adb5bd !important;
    opacity: 0.7;
}

.search-input::-moz-placeholder {
    color: #adb5bd !important;
    opacity: 0.7;
}

.search-input:-ms-input-placeholder {
    color: #adb5bd !important;
    opacity: 0.7;
}

.search-input:-moz-placeholder {
    color: #adb5bd !important;
    opacity: 0.7;
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #5a6fd8;
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    flex: 1;
    min-width: 150px;
    padding: 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    background: white;
}

/* Content section */
.content-section {
    max-width: 1200px;
    /*margin: 0 auto;*/
    padding: 2rem 1rem;
}

.page-loading-container {
    text-align: center;
    padding: 3rem 1rem;
}

.page-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: #666;
}

.empty-state p {
    color: #999;
}

/* Items grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Item card */
.item-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.item-image {
    position: relative;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.placeholder-image {
    font-size: 3rem;
    color: #ccc;
}

.verified-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #28a745;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.item-content {
    padding: 1rem;
}

.item-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.4;
}

.item-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.location-icon {
    font-size: 0.8rem;
}

.category-badge {
    display: inline-block;
    background: #e9ecef;
    color: #666;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.item-price {
    margin-bottom: 0.75rem;
}

.price-amount {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
}

.price-unit {
    font-size: 0.8rem;
    color: #666;
    margin-right: 0.25rem;
}

.item-details {
    border-top: 1px solid #f0f0f0;
    padding-top: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.detail-label {
    color: #666;
}

.detail-value {
    color: #333;
    font-weight: 500;
}

/* Load more button */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

.load-more-btn {
    padding: 0.75rem 2rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.load-more-btn:hover:not(:disabled) {
    background: #5a6fd8;
}

.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Footer styles are now in footer-styles.css */

/* Auth Pages Styles */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
}

.auth-card .card-body {
    padding: 3rem 2rem;
}

.auth-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.auth-icon.login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-icon.register {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #333;
}

.auth-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.auth-subtitle a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.auth-subtitle a:hover {
    text-decoration: underline;
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Placeholder styles - کم رنگ تر کردن placeholder ها */
.form-control::placeholder {
    color: #adb5bd !important;
    opacity: 0.7;
}

.form-control::-webkit-input-placeholder {
    color: #adb5bd !important;
    opacity: 0.7;
}

.form-control::-moz-placeholder {
    color: #adb5bd !important;
    opacity: 0.7;
}

.form-control:-ms-input-placeholder {
    color: #adb5bd !important;
    opacity: 0.7;
}

.form-control:-moz-placeholder {
    color: #adb5bd !important;
    opacity: 0.7;
}

/* Placeholder styles for textarea */
textarea.form-control::placeholder {
    color: #adb5bd !important;
    opacity: 0.7;
}

textarea.form-control::-webkit-input-placeholder {
    color: #adb5bd !important;
    opacity: 0.7;
}

textarea.form-control::-moz-placeholder {
    color: #adb5bd !important;
    opacity: 0.7;
}

textarea.form-control:-ms-input-placeholder {
    color: #adb5bd !important;
    opacity: 0.7;
}

textarea.form-control:-moz-placeholder {
    color: #adb5bd !important;
    opacity: 0.7;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .auth-card .card-body {
        padding: 2rem 1.5rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    .item-card {
        margin: 0 0.5rem;
    }
}

/* Add Item Page Specific Styles */
.text-primary {
    color: #667eea !important;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-secondary {
    background: #6c757d;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
    color: white;
}

hr {
    border-color: #e9ecef;
    opacity: 0.5;
}

/* Responsive adjustments for add item form */
@media (max-width: 768px) {
    .auth-card {
        max-width: 100% !important;
/*        margin: 1rem;*/
    }
    
    .auth-card .card-body {
        padding: 2rem 1rem;
    }
    
    .row {
        margin: 0;
    }
    
    .col-md-6 {
        padding: 0 0.5rem;
    }
}

/* Item Detail Page Styles */
.item-detail-page {
    min-height: 100vh;
    background-color: #f8f9fa;
/*    padding: 2rem 1rem;*/
}

.item-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.item-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    position: relative;
}

.back-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.item-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.item-content {
    padding: 2rem;
}

.item-main-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.item-images {
    min-height: 300px;
}

.placeholder-image {
    width: 100%;
    height: 300px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.placeholder-image i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.price-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.rental-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-label {
    font-weight: 500;
    color: #6c757d;
}

.price-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
}

.price-period {
    background: #28a745;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
}

.deposit-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deposit-label {
    font-weight: 500;
    color: #6c757d;
}

.deposit-value {
    font-weight: bold;
    color: #dc3545;
}

.deposit-type {
    color: #6c757d;
    font-size: 0.9rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary:focus {
    background: #667eea;
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
    color: white;
}

.item-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
}

.meta-item i {
    color: #667eea;
    width: 20px;
}

.item-description,
.item-specifications,
.owner-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.item-description h3,
.item-specifications h3,
.owner-info h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.text-muted {
    color: #6c757d !important;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.spec-label {
    font-weight: 500;
    color: #6c757d;
}

.spec-value {
    font-weight: bold;
    color: #333;
}

.spec-value.verified {
    color: #28a745;
}

.spec-value.not-verified {
    color: #dc3545;
}

.owner-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.owner-avatar i {
    font-size: 3rem;
    color: #667eea;
}

.owner-details h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.owner-details p {
    margin: 0;
    color: #6c757d;
}

.error-container {
    text-align: center;
    padding: 3rem 1rem;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}


#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* New Loading Animation Styles */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-animation {
    text-align: center;
    color: white;
    animation: fadeInUp 0.8s ease-out;
}

.rental-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    animation: bounce 2s infinite;
}

.rental-icon i {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    animation: pulse 1.5s infinite ease-in-out;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.loading-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Responsive design for loading */
@media (max-width: 768px) {
    .rental-icon {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .loading-text {
        font-size: 1rem;
    }
    
    .loading-subtitle {
        font-size: 0.8rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}


/* Responsive design for item detail */
@media (max-width: 768px) {
    .item-main-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .item-header {
        padding: 1.5rem;
    }
    
    .item-content {
        padding: 1.5rem;
    }
    
    .item-title {
        font-size: 1.5rem;
    }
}

/* Location Picker Styles - Mobile First */
.location-picker .modal {
    z-index: 1050;
}

/* Location picker button styles */
.location-picker-btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.location-picker-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.location-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.location-label {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.location-coords {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #495057;
}

/* Mobile button improvements */
@media (max-width: 576px) {
    .location-picker-btn {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .location-text {
        flex-direction: column;
    }
    
    .location-label {
        font-size: 0.8rem;
    }
    
    .location-coords {
        font-size: 0.85rem;
    }
}

.location-picker .modal-backdrop {
    z-index: 1040;
}

/* Mobile first modal design */
.location-picker .modal-dialog {
    margin: 0;
    max-width: 100%;
    height: 100%;
}

.location-picker .modal-content {
    height: 100%;
    border-radius: 0;
    border: none;
}

.location-picker .modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
    padding: 1rem;
}

.location-picker .modal-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.location-picker .modal-footer {
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
    padding: 1rem;
}

.location-picker .btn-close {
    margin: 0;
    padding: 0.5rem;
}

/* Map container - Mobile first */
.map-container {
    height: 60vh;
    min-height: 300px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

/* Input group for search */
.location-picker .input-group {
    direction: ltr;
    margin-bottom: 1rem;
}

.location-picker .input-group input {
    text-align: left;
    border-radius: 0.375rem 0 0 0.375rem;
}

.location-picker .input-group .btn {
    border-radius: 0 0.375rem 0.375rem 0;
}

/* Coordinates inputs */
.location-picker .row.g-2 {
    margin: 0;
}

.location-picker .col-12 {
    margin-bottom: 0.5rem;
}

.location-picker .form-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.location-picker .form-control {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

/* Placeholder styles for location picker inputs */
.location-picker .form-control::placeholder {
    color: #adb5bd !important;
    opacity: 0.7;
}

.location-picker .form-control::-webkit-input-placeholder {
    color: #adb5bd !important;
    opacity: 0.7;
}

.location-picker .form-control::-moz-placeholder {
    color: #adb5bd !important;
    opacity: 0.7;
}

.location-picker .form-control:-ms-input-placeholder {
    color: #adb5bd !important;
    opacity: 0.7;
}

.location-picker .form-control:-moz-placeholder {
    color: #adb5bd !important;
    opacity: 0.7;
}

/* Map container styles */
#map {
    font-family: inherit;
}

/* Leaflet map controls - Mobile optimized */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    border-radius: 8px !important;
}

.leaflet-control-zoom a {
    background-color: white !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 18px !important;
}

.leaflet-control-zoom a:hover {
    background-color: #f8f9fa !important;
}

.leaflet-control-zoom a:first-child {
    border-radius: 8px 8px 0 0 !important;
}

.leaflet-control-zoom a:last-child {
    border-radius: 0 0 8px 8px !important;
}

/* Mobile specific improvements */
@media (max-width: 576px) {
    .location-picker .modal-header {
        padding: 0.75rem;
    }
    
    .location-picker .modal-body {
        padding: 0.75rem;
    }
    
    .location-picker .modal-footer {
        padding: 0.75rem;
    }
    
    .location-picker .modal-title {
        font-size: 1.1rem;
    }
    
    .map-container {
        height: 50vh;
        min-height: 250px;
    }
    
    .location-picker .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Tablet and desktop improvements */
@media (min-width: 768px) {
    .location-picker .modal-dialog {
        max-width: 800px;
        height: auto;
        margin: 1.75rem auto;
    }
    
    .location-picker .modal-content {
        height: auto;
        border-radius: 0.5rem;
        border: 1px solid rgba(0,0,0,0.2);
    }
    
    .map-container {
        height: 400px;
    }
    
    .location-picker .col-12 {
        margin-bottom: 0;
    }
}

/* Large screens */
@media (min-width: 992px) {
    .location-picker .modal-dialog {
        max-width: 900px;
    }
    
    .map-container {
        height: 450px;
    }
}