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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
.main-header {
    background-color: #1e3a8a;
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
}

.logo-section .logo {
    height: 40px;
    width: auto;
    max-height: 40px;
    object-fit: contain;
}

.header-title h1 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
    flex: 1;
    text-align: center;
}

.user-section {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.user-info:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-icon {
    width: 32px;
    height: 32px;
    color: white;
}

.user-name {
    font-size: 0.9rem;
    color: white;
}

.dropdown-arrow {
    color: white;
    margin-left: 0.25rem;
}

/* Main Container */
.main-container {
    display: flex;
    min-height: calc(100vh - 120px);
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background-color: white;
    padding: 1.5rem 0;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
    min-height: calc(100vh - 80px);
}

.project-address {
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    color: #666;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 1rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-item:hover {
    background-color: #f0f0f0;
    color: #1e3a8a;
}

.nav-item.active {
    background-color: #1e3a8a;
    color: white;
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-x: hidden;
}

/* Card Styles */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.card-icon {
    width: 20px;
    height: 20px;
    color: #1e3a8a;
}

.info-icon {
    color: #1e3a8a;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.card-body {
    padding: 1.25rem 1.5rem;
}

.progress-card .card-body {
    padding: 1.5rem;
}

.activity-card .card-body {
    padding: 1rem 1.5rem;
}

.card-content {
    padding: 1.5rem;
}

/* Welcome Card */
.welcome-card {
    background-color: #f8f9fa;
    border-left: 4px solid #1e3a8a;
}

.welcome-card .card-content {
    color: #555;
    line-height: 1.8;
}

.download-link {
    color: #1e3a8a;
    text-decoration: underline;
    font-weight: 500;
}

.download-link:hover {
    color: #1e40af;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Progress Card */
.progress-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}

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

.progress-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.progress-value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #333;
}

.status-icon {
    width: 20px;
    height: 20px;
    color: #999;
    flex-shrink: 0;
}

/* Activity Card */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e5e5;
}

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

.activity-date {
    font-size: 0.85rem;
    color: #666;
    min-width: 110px;
    font-weight: 500;
    flex-shrink: 0;
}

.activity-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

.activity-icon {
    width: 16px;
    height: 16px;
    color: #666;
    flex-shrink: 0;
}

/* Image Carousel */
.image-card {
    grid-column: 1;
    grid-row: 2;
}

.image-carousel {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #e5e5e5;
}

.carousel-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    z-index: 10;
    color: #333;
}

.carousel-btn:hover {
    background-color: white;
}

.carousel-btn-prev {
    left: 1rem;
}

.carousel-btn-next {
    right: 1rem;
}

/* Contact Card */
.contact-card {
    grid-column: 2;
    grid-row: 2;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #666;
}

.contact-info {
    flex: 1;
}

.contact-role {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.contact-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.contact-email {
    font-size: 0.85rem;
    color: #1e3a8a;
    text-decoration: none;
}

/* Documents Card */
.documents-card {
    grid-column: 3;
    grid-row: 2;
}

/* Footer */
.main-footer {
    background-color: white;
    border-top: 1px solid #e5e5e5;
    padding: 1rem 2rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: flex-start;
}

.footer-url {
    font-size: 0.85rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-card {
        grid-column: 1;
        grid-row: 3;
    }

    .contact-card {
        grid-column: 2;
        grid-row: 3;
    }

    .documents-card {
        grid-column: 1 / 3;
        grid-row: 4;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .image-card,
    .contact-card,
    .documents-card {
        grid-column: 1;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .header-title {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
    }

    .main-content {
        padding: 1rem;
    }
}

/* Scrollbar Styling */
.activity-list::-webkit-scrollbar {
    width: 6px;
}

.activity-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.activity-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.activity-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

