body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: #f4f4f4;
    color: #222;
    line-height: 1.6;
}

/* Header Styles */
header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: none;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    max-height: 45px;
    width: auto;
}

.header-text {
    text-align: left;
}

header h1 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
    letter-spacing: 1px;
    color: #047857;
}

header p {
    margin: 4px 0 0 0;
    color: #666;
    font-size: 0.95em;
}

nav {
    display: flex;
    gap: 18px;
    margin-top: 10px;
}

nav a {
    color: #333;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
}

nav a:hover {
    color: #047857;
    background-color: rgba(4, 120, 87, 0.08);
}

nav a.active {
    color: #047857;
    font-weight: 600;
}

nav a.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 12px;
    right: 12px;
    height: 2px;
    background-color: #047857;
    border-radius: 2px;
}

.container {
    max-width: 800px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-container {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.form-column {
    flex: 1;
    min-width: 200px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

select, input {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    margin-bottom: 10px;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #45a049;
}

.table-container {
    margin-top: 20px;
    position: relative;
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    margin-bottom: 16px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-size: 0.9em;
    min-width: 100px;
}

th {
    background-color: #f2f2f2;
    position: sticky;
    top: 0;
    z-index: 1;
}

td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

td:hover {
    white-space: normal;
    overflow: visible;
    background-color: #f8f8f8;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
}

.checkbox-label input {
    width: auto;
}

.quality-filters {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.quality-filters h3 {
    margin-top: 0;
    color: #047857;
    font-size: 1.1em;
}

.quality-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.quality-filter-btn {
    padding: 8px 16px;
    border: 1px solid #047857;
    border-radius: 4px;
    background: white;
    color: #047857;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quality-filter-btn.active {
    background: #047857;
    color: white;
}

.quality-filter-btn:hover {
    background: #0478571a;
}

.play-button {
    background-color: #008CBA;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    white-space: nowrap;
}

.export-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    width: fit-content;
}

.export-btn:hover {
    background-color: #1d4ed8;
}

.scale-info {
    background-color: #f0f8ff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.results-summary {
    background: #f8f9fa;
    border-left: 4px solid #047857;
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.results-summary p {
    margin: 8px 0;
    color: #333;
    font-size: 0.95em;
}

.results-summary strong {
    color: #047857;
}

.table-top-scroller {
    height: 16px;
    overflow-x: auto;
    overflow-y: hidden;
}

.table-top-scroller::-webkit-scrollbar,
.table-wrapper::-webkit-scrollbar {
    height: 16px;
}

.table-top-scroller::-webkit-scrollbar-track,
.table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

.table-top-scroller::-webkit-scrollbar-thumb,
.table-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 8px;
}

.table-top-scroller::-webkit-scrollbar-thumb:hover,
.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 16px;
    }
    
    .header-left {
        width: 100%;
        justify-content: center;
        margin-bottom: 14px;
    }
    
    .header-text {
        text-align: center;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

main {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 16px;
}

.about-section,
.connect-section,
.skills-section {
    margin-bottom: 36px;
}

section h2 {
    font-size: 1.3em;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    color: #333;
}

.social-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 18px;
}

.social-links a {
    text-decoration: none;
    color: #047857;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-links a[href^="mailto"] {
    color: #ea4335;
}

.social-links img {
    width: 20px;
    vertical-align: middle;
}

.skills-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.skills-list li {
    background: #e0f2f1;
    color: #047857;
    padding: 6px 14px;
    border-radius: 16px;
    font-weight: 500;
}

.projects-section {
    margin-top: 40px;
}

.project-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-item {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
}

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

.project-title {
    font-size: 1.1em;
    font-weight: 500;
    margin: 0 0 4px 0;
    color: #047857;
}

.project-desc {
    margin: 0;
    color: #444;
    font-size: 1em;
}

.project-description {
    background: #f0f9ff;
    border-left: 4px solid #047857;
    padding: 20px;
    margin: 20px 0;
    border-radius: 6px;
}

.project-description h2 {
    color: #047857;
    margin: 0 0 12px 0;
    font-size: 1.2em;
}

.project-description p {
    margin: 0;
    color: #374151;
    line-height: 1.6;
}

@media (max-width: 600px) {
    main {
        margin: 24px 0;
    }
}