@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    /* max-width: 1400px; */
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    background: white;
    padding: 15px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1000;
    overflow: visible;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo img {
    height: 25px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #2c5aa0;
}

.confidentialHeader{
    color: firebrick;
    font-family: serif;
    font-weight: 600;
    text-align-last: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info-container {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px #2c5aa0 solid;
    border-radius: 15px;
    padding: 5px;
    overflow: visible !important;
}

.user-avatar {
    width: 30px;
    height: 30px;
    background: #2c5aa0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.powered-by {
    font-size: 12px;
    color: #666;
}

/* User Dropdown Styles */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-dropdown-toggle:hover {
    background-color: #f0f0f0;
}

.user-dropdown-toggle i {
    color: #666;
    font-size: 12px;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    /* display: none; */
    margin-top: 5px;
}

.user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.user-dropdown-menu::after {
    content: '';
    position: absolute;
    top: -9px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ddd;
}

.user-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.user-dropdown-item:last-child {
    border-bottom: none;
}

.user-dropdown-item:hover {
    background-color: #f8f9fa;
}

.user-dropdown-item i {
    width: 16px;
    color: #666;
}

.user-dropdown-item.sign-out {
    color: #dc3545;
}

.user-dropdown-item.sign-out:hover {
    background-color: #fff5f5;
}

.user-dropdown-item.sign-out i {
    color: #dc3545;
}


/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-tab {
    padding: 12px 24px;
    background: #E4ECF3;
    border: solid 1px #C8DEF2;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #2D3494;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08); */
    transition: all 0.3s ease;
    font-family: Roboto;
    font-weight: 500;
}

.nav-tab i {
    font-size: 16px;
    color: #1976d2;
}

.nav-tab.active {
    background: #1565c0;
    color: white;
    box-shadow: 0 3px 6px rgba(21, 101, 192, 0.3);
}

.nav-tab.active i {
    color: white;
}

.nav-tab:hover {
    background: #1565c0;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(21, 101, 192, 0.25);
}

.nav-tab:hover i {
    color: white;
}

.nav-tab.active:hover {
    background: #1565c0;
    color: white;
}

.nav-tab.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    color: #78909c;
    background: #eceff1;
    box-shadow: none;
}

.nav-tab.disabled:hover {
    transform: none;
    background: #eceff1;
    color: #78909c;
    box-shadow: none;
}

.nav-tab.disabled i {
    color: #78909c;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #4a69bd 0%, #3742fa 100%);
    border-radius: 15px;
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.project-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    color: white;
}

.hero-description {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-indicators {
    display: flex;
    gap: 10px;
    align-items: center;
}

.indicator {
    width: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

.carousel-controls {
    margin-left: 20px;
    display: flex;
    gap: 10px;
}

.carousel-btn {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-car {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 200px;
    /* background: #ddd; */
    border-radius: 10px;
    z-index: 1;
    background-size: cover;
    background-position: center;
    transition: all 0.5s ease;
    /* border: 1px solid lightgrey; */
    right: 16px;
}

/* Schedule Section */
.schedule-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.schedule-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.year-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.year-selector select {
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.expand-btn {
    background: #2c5aa0;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 6px;
    transition: background 0.3s;
}

.expand-btn:hover {
    background: #1e4080;
}

/* Schedule Table */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

.schedule-table th,
.schedule-table td {
    padding: 5px 2px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.schedule-table th {
    background: lightgrey;
    color: black;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid white;
}

.schedule-table td {
    font-size: 10px;
    color: #333;
    transition: background 0.3s;
}

.schedule-table tr:hover:not(.maker-row) {
    background: #f8f9fa;
}

.schedule-cell {
    background: cornflowerblue;
    color: white;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px 0;
    border-radius: 4px;
    cursor: pointer; /* ADD THIS */
    transition: all 0.3s ease; /* ADD THIS */
    align-content: center;
}

.schedule-cell:hover {
    background: #4a74c8;
    color: white; /* Lighter blue on hover */
    transform: scale(1.05);
}

.schedule-cell:active {
    transform: scale(0.98);
}

.model-name {
    text-align: left;
    text-transform: capitalize;
    font-weight: 500;
    padding-left: 20px;
}
/* Schedule Actions Container */
.schedule-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Admin Button Styles */
.admin-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #28a745, #34ce57);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-btn:hover {
    background: linear-gradient(135deg, #218838, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.admin-btn i {
    font-size: 14px;
}

.schedule-container.expanded #calendarAdminBtn {
    display: inline-flex;
  }
  
  /* Optional: Change the expand icon to a compress icon when open */
  .schedule-container.expanded .expand-btn i:before {
    content: "\f066"; /* FontAwesome code for compress */
  }

/* Ensure expand button maintains its style */
.expand-btn {
    background: #2c5aa0;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 6px;
    transition: background 0.3s;
}

.expand-btn:hover {
    background: #1e4080;
}

/* Maker Row Styles */
.maker-row {
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.maker-row.msil {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.maker-row.smc {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.maker-row.sim {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

/* Model Row Styles */
.model-row {
    background: #fafbfc;
}

/* .model-row .model-name {
            padding-left: 40px;
            font-style: italic;
        } */

/* Schedule Cell Styles */
.schedule-cell {
    background: cornflowerblue;
    color: white;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px 0;
    border-radius: 4px;
}

/* Month column equal width */
.schedule-table th:not(:first-child),
.schedule-table td:not(:first-child) {
    width: 7.5%;
    /* 90% / 12 months = 7.5% each */
}

.schedule-table th:first-child,
.schedule-table td:first-child {
    width: 10%;
    /* Model name column */
}

/* Responsive */
@media (max-width: 768px) {
    .schedule-section {
        padding: 20px;
        margin: 10px;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 10px 5px;
        font-size: 12px;
    }

    .schedule-title {
        font-size: 20px;
    }

    .year-selector {
        padding: 8px 12px;
    }
}

/* Legend */
.legend {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Teardown Section */
.teardown-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.teardown-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

/* Remove or comment out these old styles:
.teardown-images-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 15px;
}
.teardown-images-container::-webkit-scrollbar { ... }
.teardown-image { margin-bottom: 10px; }
*/

/* Add new carousel styles */
.teardown-images-container {
    position: relative;
    width: 100%;
    height: 160px;
    /* Reduced from previous size */
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
    cursor: pointer;
}

.teardown-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: none;
}

.teardown-image.active {
    display: block;
}

.teardown-image:hover {
    transform: scale(1.02);
}

.teardown-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.teardown-carousel-btn {
    width: 35px;
    height: 35px;
    background: #2c5aa0;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.teardown-carousel-btn:hover {
    background: #1e4080;
    transform: scale(1.1);
}

.teardown-carousel-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.teardown-indicators {
    display: flex;
    gap: 8px;
}

.teardown-indicator {
    width: 8px;
    height: 8px;
    background: rgba(44, 90, 160, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.teardown-indicator.active {
    background: #2c5aa0;
    width: 24px;
    border-radius: 4px;
}

.teardown-indicator:hover {
    background: rgba(44, 90, 160, 0.6);
}

.teardown-content {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
}



/* Announcements Section */
/* Adjust Announcements Section Size */
.announcements-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.announcements-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}


.announcements-container {
    max-height: 100px;
    /* Reduced from previous size */
    overflow-y: auto;
    padding-right: 5px;
}

.announcements-container::-webkit-scrollbar {
    width: 6px;
}

.announcements-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.announcements-container::-webkit-scrollbar-thumb {
    background: #2c5aa0;
    border-radius: 10px;
}

.announcement-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.announcement-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.announcement-icon {
    width: 40px;
    height: 40px;
    background: #4a69bd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.announcement-content {
    flex: 1;
}

.announcement-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.announcement-date {
    font-size: 12px;
    color: #2c5aa0;
    margin-bottom: 8px;
}

.announcement-text {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Footer */
.footer {
    /* margin-top: 40px; */
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 20px 0;
    background-color: rgb(227, 227, 227);
}

.footer-logos {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    height: 70px;
    background: #ddd;
    border-radius: 5px;
}

.footer-logo:hover {
    scale: 1.03;
    transition: 0.3ms;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .hero-car {
        width: 300px;
        height: 150px;
    }

    .hero-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }

    .nav-tabs {
        flex-wrap: wrap;
    }

    .hero-section {
        padding: 20px;
    }

    .hero-car {
        display: none;
    }

    .schedule-table {
        font-size: 12px;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 8px 5px;
    }
}

/* Chrome, Safari, Edge */
input.no-calendar::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

/* Firefox */
input.no-calendar {
    -moz-appearance: textfield;
}

/* Remove additional spinner in Firefox and Edge */
input.no-calendar::-webkit-inner-spin-button,
input.no-calendar::-webkit-clear-button {
    display: none;
}

.required{
    color: firebrick;
}


.action-buttons{
    gap: 10px;
    display: flex;
}

/* .nav-tab span{
    font-size: small;
} */