* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
   /* outline: 1px solid blue;
    outline-offset: -1px;*/
}
body {
    background-color: #ffffcc18;
    color: #333;
    max-width: 767px;
    margin: 0 auto;
    overflow-x: hidden;
    padding: 0 12px;
    -webkit-font-smoothing: antialiased;
    
}


/* Smart Header */
.header {
    top: 0;
    max-width: 767px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 13px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0 0 15px 15px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease;
    position:relative;
}

.header.hidden {
    transform: translateY(-100%);
}

.company-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #222;
}

.header-icons {
    display: flex;
    gap: 15px;
}

.header-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #444;
    transition: transform 0.2s;
}

.header-icon:hover {
    transform: scale(1.1);
}

.header-icon svg {
    width: 100%;
    height: 100%;
}

/* Menu Popup */
.menu-popup {
    position: fixed;
    top: 65px;
    right: 0px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 101;
    width: 180px;
    transform: scale(0.95);
    opacity: 0;
    transform-origin: top right;
    transition: all 0.2s ease-out;
    pointer-events: none;
}

.menu-popup.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}

.menu-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    color: #333;
}

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

/* Main Content */
.gallery-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 2px;
}

.main-image-container {
    width: 100%;
    margin: 15px 0;
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.main-image-wrapper {
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    position: relative;
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-card {
    background-color: #fff;
    margin: 0 0 15px 0;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.info-card h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #222;
}

.info-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Optimized Thumbnails */
.thumbnails-wrapper {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0 0 15px 0;
    padding: 10px;
}

.thumbnails-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.thumbnails-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #444;
}

.thumbnails-count {
    font-size: 0.8rem;
    color: #888;
}

.thumbnails-container {
    display: flex;
    overflow-x: auto;
    max-width: 100%;
    gap: 10px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
}

.thumbnails-container::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    scroll-snap-align: start;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
}

.thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(124,130,132,0.435);
}

.thumbnail.active {
    opacity: 1;
    border-color: none;
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 2px 4px rgba(97,121,130,0.383);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
/* Work Progress Table */
.work-progress-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0 0 15px 0;
    overflow: hidden;
    aspect-ratio: auto;
    height: auto;
}

.work-progress-header {
    padding: 15px;
    background-color: #96c0af21;
    border-bottom: 1px solid #eee;
}

.work-progress-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.work-progress-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 0 15px;
}

.progress-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

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

.progress-order-number {
    width: 100px;
    font-size: 0.75rem;
    color: #0066cc;
    font-weight: 500;
    flex-shrink: 0;
}

.progress-description {
    flex-grow: 1;
    font-size: 0.8rem;
    color: #555;
    padding: 0 10px;
}

.progress-status {
    width: 60px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    padding: 4px 0;
    border-radius: 4px;
    flex-shrink: 0;
}

.progress-25 {
    background-color: #ffebee;
    color: #f44336;
}

.progress-50 {
    background-color: #fff8e1;
    color: #ffa000;
}

.progress-75 {
    background-color: #e8f5e9;
    color: #4caf50;
}

.progress-done {
    background-color: #e3f2fd;
    color: #1976d2;
}
/* Major Issues Table */
.issues-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0 0 15px 0;
    overflow: hidden;
}

.issues-header {
    padding: 15px;
    background-color: #96c0af21;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.issues-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.issues-info-icon {
    width: 20px;
    height: 20px;
    color: #0066ff;
}

.issues-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 0 15px;
}

/* Modify the issue-item to use flexbox spacing */
.issue-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Add this */
}

/* Update the issue-content to grow and take available space */
.issue-content {
    flex-grow: 1; /* Ensure it takes all available space */
    padding-right: 15px; /* Add some spacing before download icon */
}

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

.issue-title {
    flex-grow: 1;
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
}

.issue-meta {
    font-size: 0.75rem;
    color: #666;
    margin-top: 3px;
}

.issue-severity {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 8px;
}

.severity-critical {
    background-color: #ffebee;
    color: #d32f2f;
}

.severity-high {
    background-color: #fff8e1;
    color: #ffa000;
}

.issue-download {
    width: 20px;
    height: 20px;
    color: #666;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto; /* Push to far right */
}
/* Work Plan Table */
.work-plan-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0 0 15px 0;
    overflow: hidden;
}

.work-plan-header {
    padding: 15px;
    background-color: #96c0af21;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.work-plan-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.work-plan-nav {
    display: flex;
    gap: 10px;
}

.work-plan-nav-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.work-plan-nav-btn:hover {
    background-color: #e0e0e0;
}

.work-plan-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.download-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 5px;
}

.download-btn:hover {
    background-color: #e0e0e0;
}

.work-plan-scroll {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    display: flex;
}

.work-plan-scroll::-webkit-scrollbar {
    display: none;
}

.work-plan-day {
    min-width: 100%;
    scroll-snap-align: start;
    padding: 0 15px;
}

.work-plan-date {
    font-size: 0.85rem;
    color: #666;
    padding: 12px 0 8px 0;
    font-weight: 500;
}

.work-plan-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.work-plan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.work-plan-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.work-plan-table tr:last-child {
    border-bottom: none;
}

.work-plan-table td {
    padding: 10px 0;
    color: #555;
    vertical-align: top;
}

.work-plan-table td:first-child {
    width: 30px;
    color: #888;
    padding-right: 8px;
}

/* Priority Notes Table */
.notes-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0 0 15px 0;
    overflow: hidden;
}

.notes-header {
    padding: 15px;
    background-color: #96c0af21;
    border-bottom: 1px solid #eee;
}

.notes-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.notes-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 0 15px;
}

.note-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
}

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

.note-priority {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
    margin-top: 4px;
    flex-shrink: 0;
}

.priority-low {
    background-color: #4CAF50;
}

.priority-medium {
    background-color: #FFC107;
}

.priority-high {
    background-color: #F44336;
}

.note-content {
    flex-grow: 1;
    font-size: 0.8rem;
    color: #555;
}

.note-info {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    color: #0066ff;
    cursor: pointer;
    flex-shrink: 0;
}

/* Note Info Popup */
.note-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 102;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    padding: 20px;
}

.note-popup.active {
    opacity: 1;
    pointer-events: all;
}

.note-popup-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 100%;
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}

.note-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
}

.note-popup-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.note-popup-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

/* Upcoming Events Table */
.events-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0 0 15px 0;
    overflow: hidden;
}

.events-header {
    padding: 15px;
    background-color: #96c0af21;
    border-bottom: 1px solid #eee;
}

.events-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.events-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 0 15px;
}

.event-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

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

.event-priority {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.priority-high {
    background-color: #F44336;
}

.priority-medium {
    background-color: #FFC107;
}

.priority-normal {
    background-color: #2196F3;
}

.event-content {
    flex-grow: 1;
}

.event-title {
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
}

.event-date {
    font-size: 0.75rem;
    color: #666;
    margin-top: 3px;
}

.event-info {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    color: #0066ff;
    cursor: pointer;
    flex-shrink: 0;
}

footer {
    text-align: center;
    padding: 20px 0;
    font-size: 0.8rem;
    color: #999;
    border-top: 1px solid #eee;
    margin-top: auto;
}
@media (min-width: 768px) {
    body {
        max-width: 1200px;
        padding: 0 20px;
        margin: 0 auto;
    }
  

    .header {
        max-width: 1200px;
    }

    .gallery-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto auto auto auto;
        gap: 25px;
        align-items: stretch;
        min-height: 10vh;
        padding-bottom: 10px;
        padding-top: 23px;
        position: relative;
    }

    .left-column-wrapper,
    .work-progress-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        height: 100%;
    }

    .left-column-wrapper {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .work-progress-container {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .info-card {
        height: 100px;
        flex: 0 0 auto;
        margin: 0;
    }

    .main-image-container {
        width: 100%;
        aspect-ratio: 16 / 9;
        position: relative;
        background-color: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        margin: 0;
        flex: 0 0 auto;
    }

    .main-image-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

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

    .thumbnails-wrapper,
    .issues-container,
    .work-plan-container,
    .notes-container {
        margin: 0;
    }
  .work-progress-container {
    width: 100%;
    aspect-ratio: 4/3;
  }
    .thumbnails-wrapper {
        grid-column: 1 / -1;
        grid-row: 3;
        max-height: 100px;
        overflow-y: auto;
    }

    .issues-container {
        grid-column: 1;
        grid-row: 4;
    }

    .work-plan-container {
        grid-column: 2;
        grid-row: 4;
    }

    .notes-container {
        grid-column: 1;
        grid-row: 5;
    }

    /* Remove redundant padding/margin conflicts */
    .work-progress-container,
    .left-column-wrapper {
        padding-right: 0;
        padding-left: 0;
    }

    .work-progress-list,
    .notes-list,
    .issues-list {
        flex: 1;
        height: 100%;
        max-height: none;
        overflow-y: auto;
    }

    .work-plan-list {
        max-height: 250px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #ddd transparent;
    }

    .notes-container .notes-list,
    .issues-container .issues-list {
        max-height: 250px;
    }
}

/* Responsive adjustments */
    .events-container {
        grid-column: 2;
        grid-row: 5;
        margin: 0;
    }

    .events-list {
        max-height: 250px;
    }
    
    html, body {
      height:100%;
    }
   .wrapper{
     min-height: 100%;
   }
}