/* Main Styles for RythuVaaradhi */

:root {
    --primary-color: #4CAF50;
    --secondary-color: #FFC107;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    padding-bottom: 70px; /* Space for bottom navigation */
}

/* Header Styles */
.navbar-brand {
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.navbar-brand img {
    margin-right: 10px;
}

.location-info {
    display: flex;
    align-items: center;
    margin-right: 15px;
    color: var(--text-color);
    font-size: 0.9rem;
    flex-direction: column;
    align-items: flex-start;
}

.area-pincode-display {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
    margin-left: 20px;
}

/* Notification Banner */
.notification-banner {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 0;
    overflow: hidden;
}

.marquee {
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
    animation: marquee 20s linear infinite;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-100%, 0);
    }
}

/* Services Grid */
.services-grid {
    margin: 30px 0;
}

.service-item {
    text-align: center;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-title {
    font-size: 1rem;
    font-weight: 600;
}

/* Cards */
.card {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 180px;
    object-fit: cover;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Weather Widget */
.weather-widget {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.weather-temp {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.weather-condition {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.weather-details {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.weather-detail-item {
    text-align: center;
}

.weather-detail-value {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Bottom Navigation */
.bottom-nav {
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.bottom-nav .nav-link {
    color: var(--text-color);
    padding: 8px 0;
}

.bottom-nav .nav-link.active {
    color: var(--primary-color);
}

.bottom-nav .nav-link i {
    font-size: 1.5rem;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #3e8e41;
    border-color: #3e8e41;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Profile Page */
.profile-header {
    background-color: var(--light-bg);
    padding: 30px 0;
    margin-bottom: 30px;
    text-align: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 5px solid white;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-location {
    color: #666;
    margin-bottom: 15px;
}

/* Admin Panel */
.admin-sidebar {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 10px;
    height: 100%;
}

.admin-sidebar .nav-link {
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.admin-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-item {
        padding: 10px;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .service-title {
        font-size: 0.9rem;
    }
    
    .bottom-nav .nav-link i {
        font-size: 1.2rem;
    }
    
    .bottom-nav .nav-link span {
        font-size: 0.7rem;
    }
}

/* Login and Registration Forms */
.auth-container {
    max-width: 500px;
    margin: 30px auto;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo img {
    height: 60px;
}

.auth-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 700;
}

/* Forum Styles */
.forum-post {
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.forum-post-header {
    background-color: var(--light-bg);
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.forum-post-title {
    margin-bottom: 5px;
    font-weight: 600;
}

.forum-post-meta {
    font-size: 0.85rem;
    color: #666;
}

.forum-post-content {
    padding: 20px;
}

.forum-post-footer {
    padding: 15px;
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
}

.comment-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.comment-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

/* Mitra Help Section */
.help-category {
    margin-bottom: 30px;
}

.help-category-title {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.help-item {
    margin-bottom: 15px;
    padding: 15px;
    background-color: var(--light-bg);
    border-radius: 10px;
    transition: background-color 0.3s;
}

.help-item:hover {
    background-color: #e9ecef;
}

.help-item-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

/* News Section */
.news-date {
    color: #666;
    font-size: 0.85rem;
}

/* Listing Pages */
.filter-section {
    margin-bottom: 30px;
    padding: 15px;
    background-color: var(--light-bg);
    border-radius: 10px;
}

.listing-item {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.listing-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 15px;
}

.listing-details {
    flex: 1;
}

.listing-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.listing-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.listing-description {
    margin-bottom: 10px;
}

.listing-contact {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
}

.listing-contact:hover {
    background-color: #3e8e41;
    color: white;
}
