/* 
* City Depository - Main Stylesheet
* A modern, clean UI for city business directory
*/

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.text-primary {
    color: #3498db !important;
}

.text-success {
    color: #2ecc71 !important;
}

.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-success {
    background-color: #2ecc71;
    border-color: #2ecc71;
}

.btn-success:hover {
    background-color: #27ae60;
    border-color: #27ae60;
}

/* Navbar */
.navbar {
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    margin-bottom: 50px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.search-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.search-box .form-control,
.search-box .form-select {
    height: 50px;
    border-radius: 8px;
}

.search-box .btn {
    height: 50px;
    border-radius: 8px;
}

/* Service Categories */
.service-category {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.service-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #3498db;
}

/* Business Cards */
.business-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

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

.business-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.business-info {
    padding: 20px;
}

.business-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.business-category {
    color: #3498db;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.business-rating {
    color: #f39c12;
    margin-bottom: 15px;
}

.business-address {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
}

/* Featured Section */
.featured-section {
    background-color: #f1f8ff;
    padding: 50px 0;
    margin: 50px 0;
}

.section-title {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #3498db;
}

/* Testimonials */
.testimonial {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.testimonial-author-info h5 {
    margin-bottom: 5px;
}

.testimonial-author-info p {
    color: #777;
    font-size: 0.9rem;
    margin: 0;
}

/* Business Detail Page */
.business-detail-header {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.business-gallery {
    margin-bottom: 30px;
}

.business-gallery img {
    border-radius: 10px;
    margin-bottom: 15px;
}

.business-meta {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.business-meta-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.business-meta-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.business-meta-icon {
    color: #3498db;
    margin-right: 10px;
}

/* Forms */
.form-container {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-label {
    font-weight: 500;
}

.form-control:focus {
    box-shadow: none;
    border-color: #3498db;
}

/* Dashboard */
.dashboard-stats {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    text-align: center;
}

.dashboard-stats-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #3498db;
}

.dashboard-stats-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.dashboard-stats-text {
    color: #777;
}

.dashboard-table {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Sidebar */
.sidebar {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.sidebar-title {
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu li a {
    color: #333;
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    background-color: #f1f8ff;
    color: #3498db;
}

.sidebar-menu li a i {
    margin-right: 10px;
}

/* Pagination */
.pagination .page-item .page-link {
    color: #3498db;
}

.pagination .page-item.active .page-link {
    background-color: #3498db;
    border-color: #3498db;
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
}

/* =====================
   Auth Forms (Login / Register)
===================== */
.login-container {
    max-width: 420px;
    margin: 60px auto;
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.login-container h2 {
    margin-bottom: 25px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.login-container label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.login-container input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 18px;
    border: 1px solid #ccd0d5;
    border-radius: 6px;
    font-size: 0.95rem;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-container button:hover {
    background-color: #2980b9;
}

.error-msg {
    background: #ffdddd;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.success-msg {
    background: #d4edda;
    border-left: 4px solid #27ae60;
    color: #2e7d32;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 0.9rem;
}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}
