* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.title-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.select-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label {
    font-weight: bold;
    color: #555;
}

select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.table-container {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 3px;
}

th, td {
    border: 1px solid #ddd;
    padding: 6px;
    text-align: center;
    font-size: 14px;
}

th {
    background-color: #f8f8f8;
    font-weight: bold;
}

td {
    transition: background-color 0.3s ease;
}

td.match-perfect {
    background-color: #4CAF50;
    color: white;
}

td.match-good {
    background-color: #8BC34A;
    color: white;
}

td.match-moderate {
    background-color: #FFC107;
}

td.match-poor {
    background-color: #FF9800;
}

td.match-bad {
    background-color: #f44336;
    color: white;
}

.custom-inputs {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.input-group label {
    font-size: 12px;
    font-weight: bold;
    color: #555;
    margin: 0;
}

.input-group input {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 10px;
    }
    
    h1 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .title-icon {
        width: 28px;
        height: 28px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .select-group {
        width: 100%;
        max-width: 300px;
    }
    
    select {
        min-width: unset;
        width: 100%;
    }
    
    .custom-inputs {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .input-group {
        width: 100%;
    }
    
    .input-group input {
        width: 100%;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 4px 2px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 10px;
        margin: 5px;
    }
    
    h1 {
        font-size: 1.3rem;
    }
    
    .controls {
        gap: 12px;
    }
    
    .select-group {
        max-width: 250px;
    }
    
    table {
        font-size: 11px;
    }
    
    th, td {
        padding: 3px 1px;
    }
} 