/* Modern Theme Styles for Tree Recycling Pages */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 2rem 2rem;
}

.hero-section.not-found {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.info-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-label {
    font-weight: 600;
    color: #6c757d;
    min-width: 100px;
    margin-right: 1rem;
}

.contact-value {
    flex: 1;
}

.contact-value a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.form-section {
    background: #f8f9fa;
    padding: 3rem 0;
    margin: 3rem 0;
}

.modern-form {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    color: white;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-modern.not-found {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.btn-modern.not-found:hover {
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.required-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #856404;
}

.required-note.not-found {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.section-title {
    color: #495057;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.section-title.not-found::after {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    color: #155724;
    text-align: center;
}

.info-message {
    background: #e2e3e5;
    border: 1px solid #d6d8db;
    border-radius: 0.5rem;
    padding: 1.5rem;
    color: #383d41;
    margin-bottom: 2rem;
}

.not-found-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.found-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

/* FAQ Specific Styles */
.faq-item {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.faq-question {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0;
}

.faq-answer {
    padding: 1.5rem;
    margin: 0;
    color: #495057;
    line-height: 1.6;
    background: white;
}

.faq-answer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.faq-answer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Out of Area Specific Styles */
.hero-section.out-of-area {
    background: linear-gradient(135deg, #ffa726 0%, #ff7043 100%);
}

.section-title.out-of-area::after {
    background: linear-gradient(135deg, #ffa726 0%, #ff7043 100%);
}

.hero-section.faq {
    background: linear-gradient(135deg, #26c6da 0%, #00acc1 100%);
}

.section-title.faq::after {
    background: linear-gradient(135deg, #26c6da 0%, #00acc1 100%);
}

.out-of-area-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.faq-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

/* Address Not Found Specific Styles */
.hero-section.address-not-found {
    background: linear-gradient(135deg, #e91e63 0%, #ad1457 100%);
}

.section-title.address-not-found::after {
    background: linear-gradient(135deg, #e91e63 0%, #ad1457 100%);
}

.address-not-found-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

/* Privacy Policy Specific Styles */
.hero-section.privacy {
    background: linear-gradient(135deg, #9c27b0 0%, #673ab7 100%);
}

.section-title.privacy::after {
    background: linear-gradient(135deg, #9c27b0 0%, #673ab7 100%);
}

.privacy-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.privacy-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.privacy-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.privacy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.privacy-section h3 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.privacy-section h3 i {
    margin-right: 0.5rem;
    color: #9c27b0;
}

/* Homepage Specific Styles */
.hero-section.homepage {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    padding: 5rem 0;
}

.section-title.homepage::after {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
}

.homepage-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}



.address-search-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

.search-input-group {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.search-input-wrapper {
    flex: 1;
}

.search-input-wrapper gmpx-place-picker {
    width: 100%;
    height: 50px;
}

.search-button {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    color: white;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 120px;
    height: 50px;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
    color: white;
}

.date-announcement {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    margin: 2rem 0;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.partners-section {
    background: #f8f9fa;
    padding: 3rem 0;
    margin-top: 2rem;
}

.partner-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.partner-logo {
    max-width: 120px;
    max-height: 80px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.partner-name {
    font-weight: 600;
    color: #495057;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.partner-name:hover {
    color: #4caf50;
    text-decoration: none;
}

.partner-card a:hover .partner-logo-placeholder {
    transform: scale(1.05);
}

.partner-card a {
    text-decoration: none;
}

.info-highlight {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.info-highlight h4 {
    color: #1976d2;
    margin-bottom: 1rem;
}

.info-highlight p {
    color: #424242;
    margin-bottom: 0;
}

/* Modern Header Styles */
.modern-navbar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    border: none !important;
}

.modern-navbar .navbar-brand {
    color: white !important;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-navbar .navbar-brand:hover {
    color: #4caf50 !important;
    text-decoration: none;
}

.modern-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.modern-navbar .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.modern-navbar .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.5rem;
}

.modern-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.modern-navbar .btn-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.modern-navbar .btn-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-logo {
    height: 40px;
    width: auto;
    margin-right: 0.75rem;
    object-fit: contain;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-brand-icon {
    font-size: 1.2rem;
    color: #4caf50;
}

/* Modern Footer Styles */
.modern-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 0 1.5rem 0;
    margin-top: 4rem;
    border: none !important;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-section h5 {
    color: #4caf50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p, .footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: #4caf50;
    text-decoration: underline;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4caf50;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #4caf50;
    color: white;
    transform: translateY(-2px);
}

/* Admin Panel Styles */
.admin-hero {
    background: linear-gradient(135deg, #3f51b5 0%, #2196f3 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.admin-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.admin-menu-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.admin-menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: #3f51b5;
}

.admin-menu-icon {
    font-size: 3rem;
    color: #3f51b5;
    margin-bottom: 1rem;
}

.admin-menu-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.admin-menu-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.admin-menu-link:hover {
    text-decoration: none;
    color: inherit;
}

.unit-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #3f51b5;
}

.unit-header {
    background: linear-gradient(135deg, #3f51b5 0%, #2196f3 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.unit-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.admin-btn {
    background: linear-gradient(135deg, #3f51b5 0%, #2196f3 100%);
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(63, 81, 181, 0.3);
    color: white;
    text-decoration: none;
}

.admin-btn.secondary {
    background: linear-gradient(135deg, #607d8b 0%, #455a64 100%);
}

.admin-btn.secondary:hover {
    box-shadow: 0 5px 15px rgba(96, 125, 139, 0.3);
}

.admin-btn.danger {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.admin-btn.danger:hover {
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.3);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 3px solid #3f51b5;
}

.info-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.info-value {
    color: #6c757d;
    font-size: 0.95rem;
}

.contact-table {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-table th {
    background: #3f51b5;
    color: white;
    padding: 1rem;
    font-weight: 600;
    border: none;
}

.contact-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.area-tag {
    background: linear-gradient(135deg, #3f51b5 0%, #2196f3 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.section-divider {
    border: none;
    height: 2px;
    background: linear-gradient(135deg, #3f51b5 0%, #2196f3 100%);
    margin: 3rem 0;
    border-radius: 1px;
}

/* Contact Info Cell Styling */
.contact-info-cell {
    min-width: 140px;
}

.contact-info-cell .text-truncate {
    vertical-align: middle;
}

/* Prevent text wrapping in specific table cells */
.text-nowrap {
    white-space: nowrap !important;
}

/* Google Maps Place Picker Alignment Fix */
gmpx-place-picker {
    display: block !important;
    width: 100% !important;
    height: 45px !important;
    border: 2px solid #e9ecef !important;
    border-radius: 0.5rem !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

gmpx-place-picker input,
gmpx-place-picker input[type="text"] {
    width: 100% !important;
    height: 50px !important;
    border: none !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    outline: none !important;
    margin: 0 !important;
    background: white !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

gmpx-place-picker:focus-within {
    border-color: #667eea !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
}

gmpx-place-picker input:focus,
gmpx-place-picker input[type="text"]:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

#place-picker-container {
    position: relative;
    width: 100%;
    height: 50px;
}

#place-picker-box {
    width: 100%;
    height: 50px;
}