/* Custom styles */
.dashboard-nav {
    background: #1a2234;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.dashboard-nav .nav-link {
    color: #8a94a7;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.dashboard-nav .nav-link:hover,
.dashboard-nav .nav-link.active {
    color: white;
}

/* Progress bar styles */
.progress-wrapper {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.progress {
    height: 1.5rem;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: #ff5b01;
    transition: width 0.5s ease;
}

/* Card styles */
.custom-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Button styles */
.btn-primary {
    background-color: #ff5b01;
    border-color: #ff5b01;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #29211f;
    border-color: #29211f;
    transform: translateY(-2px);
}

/* Table styles */
.table-custom {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table-custom th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

/* Form styles */
.form-control:focus {
    border-color: #ff5b01;
    box-shadow: 0 0 0 0.2rem rgba(255,91,1,0.25);
}

/* Alert styles */
.alert-custom {
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Loading spinner */
.spinner-border {
    color: #ff5b01;
}

/* Hero section styles */
.hero {
    background: #f3f3f4;
    color: #29211f;
    padding: 6rem 0;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #29211f;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Feature section styles */
.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    transition: transform 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: #4285f4;
    margin-bottom: 1.5rem;
}

/* Navigation styles */
.navbar {
    padding: 1rem 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4285f4;
}

.nav-link {
    color: #1a2234;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #4285f4;
}

/* Footer styles */
.footer {
    background: #1a2234;
    color: #8a94a7;
    padding: 4rem 0 2rem;
}

.footer-brand {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-text {
    opacity: 0.8;
    margin-bottom: 2rem;
}

.footer-links h5 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #8a94a7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

/* Audit Results Page Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

.header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.property-info {
    margin-bottom: 0.75rem;
}

.property-name {
    font-size: 1.25rem;
    font-weight: 500;
    color: white;
    margin-bottom: 0.25rem;
}

.property-id {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.timestamp {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}

.score-section {
    margin-bottom: 3rem;
}

.score-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.score-card {
    padding: 1.5rem;
    text-align: center;
    border-radius: 8px;
    background: #800020;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.score-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.score-card.main.good {
    background: linear-gradient(135deg, #34a853 0%, #2e7d32 100%);
}

.score-card.main.medium {
    background: linear-gradient(135deg, #fbbc05 0%, #ff8f00 100%);
}

.score-card.main.poor {
    background: linear-gradient(135deg, #800020 0%, #600018 100%);
}

.score-card.main.success {
    background: #4a4a4a;
}

.score-card.main.warning {
    background: #ff8f00;
}

.score-card.warning {
    background: #800020;
    color: white;
}

.score-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.score-label {
    font-size: 1rem;
    opacity: 0.9;
}

.audit-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.tooltip-wrapper {
    display: flex;
    align-items: center;
}

.info-icon {
    color: #4285f4;
    font-size: 1rem;
    cursor: help;
    transition: color 0.2s ease;
}

.info-icon:hover {
    color: #1a73e8;
}

.category-section {
    scroll-margin-top: 120px;
}

.category-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a2234;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #4285f4;
}

.check-list {
    display: grid;
    gap: 1.5rem;
}

.check-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s ease;
}

.check-card:hover {
    transform: translateX(5px);
}

.check-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.check-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1a2234;
    margin: 0;
    flex: 1;
    margin-right: 1rem;
}

.check-severity {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.check-severity.high {
    background: rgba(234, 67, 53, 0.1);
    color: #ea4335;
}

.check-severity.medium {
    background: rgba(251, 188, 5, 0.1);
    color: #fbbc05;
}

.check-severity.low {
    background: rgba(66, 133, 244, 0.1);
    color: #4285f4;
}

.check-severity.info {
    background: rgba(52, 168, 83, 0.1);
    color: #34a853;
}

.check-severity i {
    margin-right: 0.5rem;
}

.check-details {
    margin-top: 1rem;
}

.check-message {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.check-message:last-child {
    margin-bottom: 0;
}

.check-message.warning {
    background: rgba(251, 188, 5, 0.1);
}

.check-message.success {
    background: rgba(52, 168, 83, 0.1);
}

.check-message i {
    margin-right: 1rem;
    margin-top: 0.25rem;
    color: #4285f4;
}

.check-message.warning i {
    color: #fbbc05;
}

.check-message.success i {
    color: #34a853;
}

.message-content {
    flex: 1;
    line-height: 1.5;
}

.anomaly-detection-details {
    display: grid;
    gap: 1.5rem;
}

.anomaly-group {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
}

.anomaly-group-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #1a2234;
}

.anomaly-group-header i {
    margin-right: 0.75rem;
    color: #4285f4;
}

.anomaly-group-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.anomaly-group-details li {
    padding: 0.75rem;
    border-radius: 6px;
    background: #f8f9fa;
    margin-bottom: 0.5rem;
}

.anomaly-group-details li:last-child {
    margin-bottom: 0;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.action-buttons .btn {
    padding: 0.875rem 2rem;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

/* Anomaly List Styles */
.anomalies-list {
    background: #fff3e0;
    border-left: 4px solid #ff8f00;
    border-radius: 8px;
    padding: 1rem;
}

.anomalies-list h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #ef6c00;
    margin-bottom: 0.75rem;
}

.anomalies-list ul {
    margin: 0;
    padding-left: 1.5rem;
}

.anomaly-item {
    color: #ef6c00;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.anomaly-item:last-child {
    margin-bottom: 0;
}

/* Check List Improvements */
.check-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.sidebar {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem 0;
    min-height: calc(100vh - 160px);
    max-height: calc(100vh - 160px);
    border-right: 2px solid #e3e8ef;
    position: sticky;
    top: 120px;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 2px 0 8px rgba(0,0,0,0.05);
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4285f4 0%, #1a73e8 100%);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1a73e8 0%, #1557b0 100%);
}

.nav-header {
    padding: 0 1.25rem;
    margin-bottom: 1.25rem;
    color: #6c757d;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    margin: 0.25rem 0.5rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    border-left: 3px solid transparent;
    white-space: normal;
    word-wrap: break-word;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

.sidebar .nav-link i {
    width: 20px;
    min-width: 20px;
    margin-right: 10px;
    font-size: 1rem;
    color: #6c757d;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar .nav-link span {
    flex: 1;
    word-wrap: break-word;
}

.sidebar .nav-link:hover {
    background: linear-gradient(90deg, rgba(66, 133, 244, 0.1) 0%, rgba(66, 133, 244, 0.05) 100%);
    color: #4285f4;
    border-left-color: #4285f4;
    transform: translateX(4px);
}

.sidebar .nav-link:hover i {
    color: #4285f4;
    transform: scale(1.1);
}

.sidebar .nav-link.active {
    background: linear-gradient(90deg, rgba(66, 133, 244, 0.15) 0%, rgba(66, 133, 244, 0.08) 100%);
    color: #4285f4;
    border-left-color: #4285f4;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(66, 133, 244, 0.1);
}

.sidebar .nav-link.active i {
    color: #4285f4;
}

.score-section {
    margin-bottom: 2rem;
}

.score-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.score-card {
    padding: 1.5rem;
    text-align: center;
    border-radius: 8px;
    background: #800020;
    color: #ffffff;
}

.score-card.main.success {
    background: #4a4a4a;
}

.score-card.main.warning {
    background: #ff8f00;
}

.score-value {
    font-size: 2rem;
    font-weight: 600;
    margin: 0.5rem 0;
    color: #ffffff;
}

.score-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.score-icon {
    font-size: 1.5rem;
    color: #ffffff;
}

.check-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.check-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
}

.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.all-good {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-badge.warning {
    background-color: #fff3e0;
    color: #ef6c00;
}

.check-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.check-message.all-good {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.check-message.warning {
    background-color: #fff3e0;
    color: #ef6c00;
}

.check-message i {
    margin-top: 0.2rem;
}

.check-message:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .score-cards {
        grid-template-columns: 1fr;
    }

    .sidebar {
        max-height: none;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid #eef2f7;
        min-height: auto;
    }

    .header {
        padding: 1.5rem;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .audit-section {
        padding: 1.5rem;
    }
}

@media (min-width: 769px) {
    .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }
}
