/* Custom styles for Multi-Purpose Listing Platform */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 20px;
}

/* Card Styles */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.card-img-top {
    transition: transform 0.3s;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Dashboard Sidebar */
.list-group-item {
    border: none;
    margin-bottom: 5px;
    border-radius: 5px !important;
    transition: all 0.3s;
}

.list-group-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Lead Counter Badge */
.lead-counter {
    position: relative;
    display: inline-block;
}

.lead-counter .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 10px;
}

/* Notification Badge */
.notification-badge {
    position: relative;
}

.notification-badge .badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 10px;
}

/* Profile Photo */
.profile-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    padding: 3px;
}

/* Listing Cards */
.listing-card {
    position: relative;
}

.listing-card .category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

.listing-card .contact-info {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.listing-card:hover .contact-info {
    display: block;
}

/* Search Form */
.search-form .input-group {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 50px;
    overflow: hidden;
}

.search-form .form-control,
.search-form .form-select,
.search-form .btn {
    border: none;
    padding: 15px 25px;
}

.search-form .form-control:focus,
.search-form .form-select:focus {
    box-shadow: none;
}

/* Membership Plans */
.plan-card {
    text-align: center;
    padding: 30px;
}

.plan-card .price {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
}

.plan-card .price small {
    font-size: 16px;
    color: var(--secondary-color);
}

.plan-card .features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.plan-card .features li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.plan-card .features li:last-child {
    border-bottom: none;
}

.plan-card .features i {
    margin-right: 10px;
}

/* Admin Panel */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background-color: #343a40;
    color: white;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 15px 20px;
    transition: all 0.3s;
}

.admin-sidebar .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
    padding-left: 30px;
}

.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.admin-sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
}

/* Tables */
.table th {
    border-top: none;
    font-weight: 600;
    color: var(--secondary-color);
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 28px;
    }
    
    .search-form .input-group {
        flex-direction: column;
        border-radius: 10px;
    }
    
    .search-form .form-control,
    .search-form .form-select,
    .search-form .btn {
        border-radius: 0 !important;
    }
    
    .admin-sidebar {
        min-height: auto;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}