/* =====================================================
   Additional Component Styles
   ===================================================== */

/* =====================================================
   1. ENHANCED ITEM CARDS
   ===================================================== */
.item-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.item-card .card-img-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    padding: 1rem;
}

.item-card .card-title {
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* =====================================================
   2. CATEGORY CARDS
   ===================================================== */
.category-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #495057;
}

.category-card:hover {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.category-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.category-card h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.category-card .item-count {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* =====================================================
   3. SEARCH & FILTER ENHANCEMENTS
   ===================================================== */
.search-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.search-container h5 {
    color: #495057;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.price-range-inputs {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.price-range-inputs input {
    flex: 1;
}

.price-range-inputs .range-separator {
    color: #6c757d;
    font-weight: 500;
}

/* =====================================================
   4. USER DASHBOARD ENHANCEMENTS
   ===================================================== */
.dashboard-welcome {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.dashboard-welcome h2 {
    margin-bottom: 1rem;
    font-weight: 300;
}

.dashboard-welcome p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.quick-action-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.quick-action-card:hover {
    color: #007bff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.quick-action-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #007bff;
}

.quick-action-card h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* =====================================================
   5. ENHANCED STATISTICS
   ===================================================== */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.stat-card.primary {
    border-left-color: #007bff;
}

.stat-card.success {
    border-left-color: #28a745;
}

.stat-card.warning {
    border-left-color: #ffc107;
}

.stat-card.info {
    border-left-color: #17a2b8;
}

.stat-card .stat-icon {
    font-size: 2rem;
    opacity: 0.7;
    float: right;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* =====================================================
   6. FORM ENHANCEMENTS
   ===================================================== */
.form-floating-custom {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-floating-custom input,
.form-floating-custom textarea,
.form-floating-custom select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-floating-custom input:focus,
.form-floating-custom textarea:focus,
.form-floating-custom select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.form-floating-custom label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: white;
    padding: 0 0.5rem;
    color: #6c757d;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-floating-custom input:focus + label,
.form-floating-custom input:not(:placeholder-shown) + label,
.form-floating-custom textarea:focus + label,
.form-floating-custom textarea:not(:placeholder-shown) + label,
.form-floating-custom select:focus + label,
.form-floating-custom select:not([value=""]) + label {
    top: -0.5rem;
    font-size: 0.85rem;
    color: #007bff;
}

/* =====================================================
   7. IMAGE GALLERY ENHANCEMENT
   ===================================================== */
.image-gallery-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item .remove-btn:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.gallery-item .primary-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
}

/* =====================================================
   8. CONTACT & COMMUNICATION
   ===================================================== */
.contact-card {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.contact-card h5 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-info {
    margin-bottom: 1rem;
}

.contact-info i {
    margin-right: 0.5rem;
    width: 16px;
}

.contact-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0.25rem;
    display: inline-block;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
}

/* =====================================================
   9. BREADCRUMB ENHANCEMENT
   ===================================================== */
.breadcrumb-custom {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.breadcrumb-custom .breadcrumb {
    margin-bottom: 0;
}

.breadcrumb-custom .breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-custom .breadcrumb-item a:hover {
    text-decoration: underline;
}

/* =====================================================
   10. FOOTER ENHANCEMENT
   ===================================================== */
.footer-custom {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-custom .footer-section {
    margin-bottom: 1.5rem;
}

.footer-custom h6 {
    color: #ecf0f1;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-custom p,
.footer-custom li {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.footer-custom a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-custom a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* =====================================================
   11. MODERN BUTTONS (Consolidated from multiple views)
   ===================================================== */
.modern-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-align: center;
    justify-content: center;
}

.modern-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.modern-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.modern-btn-primary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.modern-btn-secondary {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.modern-btn-secondary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.modern-btn-success {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.modern-btn-success:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.modern-btn-danger {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.modern-btn-danger:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.modern-btn-outline {
    background: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.modern-btn-outline:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
}

/* =====================================================
   12. STATUS BADGES (Consolidated from multiple views)
   ===================================================== */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: capitalize;
    white-space: nowrap;
}

.status-pending {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

.status-approved {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.status-active {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
}

.status-completed {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    color: white;
}

.status-cancelled,
.status-declined,
.status-rejected {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
}

.status-overdue {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* =====================================================
   13. RENTAL CARDS (Consolidated)
   ===================================================== */
.rental-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef2f7;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: visible;
}

.rental-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.rental-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.rental-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.rental-title {
    color: #1f2937;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.rental-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rental-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rental-thumb i {
    color: #94a3b8;
    font-size: 1.5rem;
}

.rental-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    color: #1f2937;
    font-weight: 600;
    font-size: 1rem;
}

.rental-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* =====================================================
   14. EMPTY STATE (Consolidated)
   ===================================================== */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.empty-state p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* =====================================================
   15. RESPONSIVE ADJUSTMENTS
   ===================================================== */
@media (max-width: 768px) {
    .rental-meta {
        grid-template-columns: 1fr;
    }
    
    .rental-actions {
        flex-direction: column;
    }
    
    .modern-btn {
        justify-content: center;
        width: 100%;
    }
}
