* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}

/* Header & Logo */
header {
    background: linear-gradient(to right, #1a1a2e, #16213e);
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-width: 300px;
    height: auto;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Tabs Navigation */
.tabs-container {
    background: #f8f9fa;
    border-bottom: 3px solid #e9ecef;
    overflow-x: auto;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tabs {
    display: flex;
    padding: 0;
    min-width: max-content;
}

.tab {
    padding: 18px 30px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    position: relative;
}

.tab:hover {
    background: #e9ecef;
    color: #212529;
}

.tab.active {
    background: #fff;
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #667eea, #764ba2);
}

/* Content Area */
.content {
    padding: 30px;
    min-height: 400px;
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Table Section */
.table-wrapper {
    animation: fadeIn 0.5s ease;
}

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

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

#projectTitle {
    color: #1a1a2e;
    font-size: 28px;
    font-weight: 700;
}

.filter-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    width: 300px;
    transition: all 0.3s ease;
}

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

/* Table Styles */
.table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

thead {
    background: linear-gradient(to right, #667eea, #764ba2);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

thead th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

tbody td {
    padding: 12px;
    font-size: 14px;
    color: #495057;
}

tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

tbody tr:nth-child(even):hover {
    background-color: #e9ecef;
}

/* Action Button */
.action-btn {
    background: linear-gradient(to right, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Note Section */
.note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.note p {
    color: #856404;
    font-size: 14px;
}

/* Footer */
.footer {
    background: linear-gradient(to right, #1a1a2e, #16213e);
    color: #fff;
    padding: 40px 30px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.company-info h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: #fff;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.offices-section,
.contacts-section {
    margin-top: 30px;
}

.offices-section h4,
.contacts-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #667eea;
}

.office-list {
    list-style: none;
    padding: 0;
}

.office-list li {
    padding: 8px 0;
    font-size: 15px;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.office-list li:last-child {
    border-bottom: none;
}

.project-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.contact-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.contact-item h5 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 10px;
}

.contact-item p {
    font-size: 14px;
    color: #ccc;
    margin: 5px 0;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #764ba2;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #adb5bd;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        max-width: 200px;
    }

    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .tab {
        padding: 15px 20px;
        font-size: 14px;
    }

    .table-header {
        flex-direction: column;
        align-items: stretch;
    }

    #projectTitle {
        font-size: 22px;
    }

    .search-input {
        width: 100%;
    }

    .table-container {
        font-size: 12px;
    }

    thead th,
    tbody td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .footer {
        padding: 30px 20px;
    }

    .project-contacts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 15px;
    }

    .logo {
        max-width: 150px;
    }

    #projectTitle {
        font-size: 18px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #667eea, #764ba2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #764ba2, #667eea);
}
