/* BadNeighbor CSS Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-links a:hover, 
.nav-links a.active {
    color: #667eea;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Main Content */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
}

.page {
    display: none !important;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease-in;
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 1;
}

.page.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}


/* Dashboard Welcome Styling */
.dashboard-welcome {
    text-align: center;
    margin: 3rem 0 4rem 0; /* Extra spacing from header and to tabs */
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9ff, #e8f2ff);
    border-radius: 15px;
    border: 2px solid #e1e8ed;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
}

.dashboard-welcome h1 {
    color: #667eea;
    font-size: 2.5rem;
    margin: 0;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Extra spacing for business dashboard */
#businessDashboard {
    margin-top: 2rem; /* More space from the header */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-welcome {
        margin: 2rem 0 3rem 0;
        padding: 1.5rem 0;
    }
    
    .dashboard-welcome h1 {
        font-size: 2rem;
    }
}


/* Typography */
h1 {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

h2 {
    color: #764ba2;
    font-size: 2rem;
    margin: 2rem 0 1rem;
}

h3 {
    color: #667eea;
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: linear-gradient(135deg, #f8f9ff, #e8f2ff);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 1rem 0;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Pricing Cards */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.pricing-card {
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.15);
}

.pricing-card.featured {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff, #e8f2ff);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    margin: 1rem 0;
}

/* Search Results and Records */

.search-help {
    background: #e8f4fd;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.search-help p {
    margin: 0 0 0.5rem 0;
    color: #0369a1;
    font-weight: 600;
}

.search-help ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #0369a1;
}

.search-help li {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.search-limits-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 2rem;
    text-align: center;
}

.search-limits-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Search Results Styles */
.search-results {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid #e9ecef;
}

.search-results h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.no-results {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.no-results p {
    color: #6c757d;
    margin-bottom: 1rem;
}

.no-results ul {
    text-align: left;
    display: inline-block;
    color: #495057;
}

.customer-records {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.record-item {
    background: white;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.record-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.record-header strong {
    font-size: 1.2rem;
    color: #333;
}

/* Risk Level Badges */
.risk-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.risk-high {
    background-color: #dc3545 !important;
}

.risk-medium {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.risk-low {
    background-color: #28a745 !important;
}

.risk-none {
    background-color: #6c757d !important;
}

/* Record Details */
.record-details p {
    margin: 0.5rem 0;
    color: #495057;
}

.record-details strong {
    color: #333;
}

.record-stats {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    border: 1px solid #e9ecef;
}

.record-stats p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

/* Reports Summary */
.reports-summary {
    margin-top: 1rem;
    padding: 1rem;
    background: #f1f3f4;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.reports-summary h4 {
    color: #667eea;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.report-summary {
    background: white;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 4px;
    border-left: 3px solid #667eea;
    position: relative;
}

.report-summary strong {
    color: #333;
    margin-left: 0.5rem;
}

.report-date {
    float: right;
    font-size: 0.85rem;
    color: #6c757d;
}

.report-description {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.more-reports {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Severity Badges */
.severity-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Record Actions */
.record-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    text-align: right;
}

/* Full Record Modal Styles */
.individual-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.individual-details h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.all-reports {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.all-reports h4 {
    color: #667eea;
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    background: white;
    padding: 0.5rem 0;
    border-bottom: 2px solid #e9ecef;
}

.report-detail {
    background: #f8f9fa;
    padding: 1rem;
    margin: 0.75rem 0;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.report-detail .report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.report-status {
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    background: #e9ecef;
    color: #495057;
    text-transform: uppercase;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.alert-info {
    background: #e8f4fd;
    border-left: 4px solid #0ea5e9;
    color: #0369a1;
}

.alert-warning {
    background: #fef3cd;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

/* Authentication Styles */
.auth-container {
    max-width: 500px;
    margin: 2rem auto;
    background: #f8f9ff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e1e8ed;
}

.auth-tab {
    flex: 1;
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.auth-tab.active {
    color: #667eea;
    background: white;
    border-bottom: 2px solid #667eea;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e1e8ed;
}

.modal-header h2 {
    margin: 0;
    color: #667eea;
}

.modal-close {
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 2rem;
}

/* Checkout Styles */
.checkout-summary {
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.checkout-plan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.checkout-plan h3 {
    margin: 0;
    color: #667eea;
}

.checkout-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #764ba2;
}

.checkout-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.checkout-features li {
    padding: 0.25rem 0;
    color: #666;
}

.checkout-features li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
}

.checkout-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Plan Selection Button Styles */
.plan-select-btn {
    transition: all 0.3s ease;
}

.plan-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Success/Error Messages */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e1e8ed;
}

.tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
}

.tab.active {
    color: #667eea;
    border-bottom: 2px solid #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Settings Page Styles */
.settings-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid #667eea;
}

.settings-section h3 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.settings-section h4 {
    color: #764ba2;
    margin: 1.5rem 0 1rem;
    font-size: 1.1rem;
}

.current-plan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.plan-info {
    flex: 1;
}

.plan-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.security-options {
    margin-top: 2rem;
}

.toggle-setting {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #667eea;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.notification-settings {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e1e8ed;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-info {
    flex: 1;
}

.notification-info strong {
    color: #333;
    font-size: 1rem;
}

.notification-info small {
    color: #666;
    font-size: 0.875rem;
}

.danger-zone {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.warning-box {
    background: white;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 1.5rem;
    color: #721c24;
}

.warning-box strong {
    display: block;
    margin-bottom: 0.5rem;
}

.logout-tab {
    background: #dc3545 !important;
    color: white !important;
    margin-left: auto;
}

.logout-tab:hover {
    background: #c82333 !important;
}

/* Loading States */
.loading-search {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.loading-search::after {
    content: "...";
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 10px 10px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #e1e8ed;
        transition: background-color 0.3s ease;
    }
    
    .nav-links a:hover {
        background-color: #f8f9ff;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .page {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        flex: 1;
        min-width: 120px;
    }
    
    .current-plan {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .plan-actions {
        justify-content: center;
    }
    
    .notification-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .settings-section {
        padding: 1rem;
    }

       .record-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .record-header strong {
        font-size: 1.1rem;
    }
    
    .report-date {
        float: none;
        display: block;
        margin-top: 0.25rem;
    }
    
    .record-actions {
        text-align: center;
    }
    
    .all-reports {
        max-height: 300px;
    }
    
    .report-detail .report-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .page {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }

     .record-item {
        padding: 1rem;
        margin: 0.5rem 0;
    }
    
    .search-results {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .record-stats {
        padding: 0.75rem;
    }
    
    .reports-summary {
        padding: 0.75rem;
    }
}

/* Animation for page transitions */
.page-transition {
    transition: all 0.3s ease-in-out;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Debug classes - can be removed later */
.debug-visible {
    display: block !important;
    border: 2px solid red !important;
    background: rgba(255, 0, 0, 0.1) !important;
}

.debug-hidden {
    display: none !important;
    border: 2px solid blue !important;
}